You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.apiTokenIssuer(System.getenv("FGA_API_TOKEN_ISSUER"))// Full token endpoint URL, e.g. "https://mycompany.us.auth0.com/oauth/token"
212
212
.apiAudience(System.getenv("FGA_API_AUDIENCE"))
213
213
.clientId(System.getenv("FGA_CLIENT_ID"))
214
214
.clientSecret(System.getenv("FGA_CLIENT_SECRET"))
@@ -220,7 +220,9 @@ public class Example {
220
220
}
221
221
```
222
222
223
-
#### Oauth2 Credentials
223
+
#### OAuth2 Client Credentials
224
+
225
+
The SDK supports standard OAuth2 client credentials flow for any OAuth2-compliant provider (e.g. Keycloak, Okta). The `apiAudience` parameter is optional, and an optional `scopes` parameter can be provided as a space-separated string. The `apiTokenIssuer` should be set to the full token endpoint URL of your provider.
.apiTokenIssuer(System.getenv("FGA_API_TOKEN_ISSUER"))// Full token endpoint URL, e.g. "https://mykeycloak.example.com/realms/myrealm/protocol/openid-connect/token"
0 commit comments