afterSignOutUrl |
string |
— |
Where WSO2 Identity Server redirects the user after sign-out. When it is not set, the SDK uses afterSignInUrl. It must match an authorized redirect URL of the application. |
scopes |
string | string[] |
["openid", "profile", "internal_login"] |
The scopes to request. When you set scopes, the SDK requests only those. |
enablePKCE |
boolean |
true |
Use PKCE in the authorization code flow. |
prompt |
string |
— |
The OpenID Connect prompt parameter, for example login to always show the login page. |
responseMode |
"query" | "form_post" |
"query" |
How WSO2 Identity Server returns the authorization code. With form_post, read code, session_state and state from the request body instead of the query string. |
tokenRequest.authMethod |
string |
"client_secret_post" |
How the app authenticates to the token endpoint with its client secret: client_secret_post sends it in the request body and client_secret_basic sends it in the Authorization header. |
sendIdTokenInLogoutRequest |
boolean |
— |
Send the ID token as id_token_hint in the sign-out request. Otherwise, the SDK sends client_id. |
sendCookiesInRequests |
boolean |
true |
Send cookies in requests to WSO2 Identity Server. |
tokenValidation.idToken.validate |
boolean |
true |
Validate the ID token. |
tokenValidation.idToken.validateIssuer |
boolean |
true |
Validate the issuer of the ID token. |
tokenValidation.idToken.clockTolerance |
number |
300 |
Allowed clock skew, in seconds, when validating the ID token. |
endpoints |
object |
— |
Override individual OpenID Connect endpoints, such as authorizationEndpoint, tokenEndpoint and endSessionEndpoint, instead of the ones built from baseUrl. |
wellKnownEndpoint |
string |
— |
An OpenID Connect discovery endpoint to read the endpoints from, instead of building them from baseUrl. |