KeycloakInitOptions class abstract

Annotations
  • @anonymous
  • @JS()

Constructors

KeycloakInitOptions({bool useNonce, dynamic adapter, String onLoad, String token, String refreshToken, String idToken, num timeSkew, bool checkLoginIframe, num checkLoginIframeInterval, String responseMode, String redirectUri, String silentCheckSsoRedirectUri, bool silentCheckSsoFallback, String flow, String pkceMethod, bool enableLogging, String scope, num messageReceiveTimeout})
factory

Properties

adapter ↔ dynamic
Allow usage of different types of adapters or a custom adapter to make Keycloak work in different environments. The following options are supported:
getter/setter pair
checkLoginIframe bool
Set to enable/disable monitoring login state. @default true
getter/setter pair
checkLoginIframeInterval num
Set the interval to check login state (in seconds). @default 5
getter/setter pair
enableLogging bool
Enables logging messages from Keycloak to the console. @default false
getter/setter pair
flow String
Set the OpenID Connect flow. @default standard
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idToken String
Set an initial value for the id token (only together with token or refreshToken).
getter/setter pair
messageReceiveTimeout num
Configures how long will Keycloak adapter wait for receiving messages from server in ms. This is used, for example, when waiting for response of 3rd party cookies check. @default 10000
getter/setter pair
onLoad String
Specifies an action to do on load.
getter/setter pair
pkceMethod String
Configures the Proof Key for Code Exchange (PKCE) method to use. The currently allowed method is 'S256'. If not configured, PKCE will not be used.
getter/setter pair
redirectUri String
Specifies a default uri to redirect to after login or logout. This is currently supported for adapter 'cordova-native' and 'default'
getter/setter pair
refreshToken String
Set an initial value for the refresh token.
getter/setter pair
responseMode String
Set the OpenID Connect response mode to send to Keycloak upon login. @default fragment After successful authentication Keycloak will redirect to JavaScript application with OpenID Connect parameters added in URL fragment. This is generally safer and recommended over query.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
Set the default scope parameter to the login endpoint. Use a space-delimited list of scopes. Note that the scope 'openid' will be always be added to the list of scopes by the adapter. Note that the default scope specified here is overwritten if the login() options specify scope explicitly.
getter/setter pair
silentCheckSsoFallback bool
Specifies whether the silent check-sso should fallback to "non-silent" check-sso when 3rd party cookies are blocked by the browser. Defaults to true.
getter/setter pair
silentCheckSsoRedirectUri String
Specifies an uri to redirect to after silent check-sso. Silent check-sso will only happen, when this redirect uri is given and the specified uri is available within the application.
getter/setter pair
timeSkew num
Set an initial value for skew between local time and Keycloak server in seconds (only together with token or refreshToken).
getter/setter pair
token String
Set an initial value for the token.
getter/setter pair
useNonce bool
Adds a cryptographic nonce to verify that the authentication response matches the request. @default true
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited