oidc_core library

Support for doing something awesome.

More dartdocs go here.

Classes

OidcAggregatedClaimSource
OidcAuthorizeRequest
A class that describes an /authorize request.
OidcAuthorizeResponse
Successful Authentication Response
OidcAuthorizeState
Represents a state that takes a snapshot of the request parameters and some settings to ensure nothing changes during the flow.
OidcClaimSource
OidcClientAuthentication
OidcConstants_AccessTokenTypes
OidcConstants_AuthorizationEndpoint_ResponseType
The response_type options defined by the spec
OidcConstants_AuthorizeRequest_CodeChallengeMethod
OidcConstants_AuthorizeRequest_Display
The display options defined by the spec.
OidcConstants_AuthorizeRequest_Prompt
The prompt options defined by the spec
OidcConstants_AuthorizeRequest_ResponseMode
OidcConstants_AuthParameters
OidcConstants_ClientAssertionTypes
OidcConstants_ClientAuthenticationMethods
OidcConstants_Exception
OidcConstants_GrantType
OidcConstants_JWTClaims
OidcConstants_OperationDiscriminators
OidcConstants_ProviderMetadata
OidcConstants_RequestMethod
OidcConstants_Scopes
OidcConstants_Store
OidcDeviceAuthorizationRequest
A class that describes an /authorize request.
OidcDeviceAuthorizationResponse
OidcDistributedClaimSource
OidcDurationSecondsConverter
OidcEndpoints
Helper class for dart-based openid connect clients.
OidcEndSessionRequest
OidcEndSessionResponse
OidcEndSessionState
Represents a state that takes a snapshot of the request parameters and some settings to ensure nothing changes during the flow.
OidcErrorMonitorSessionResult
OidcErrorResponse
OidcEvent
Represents an arbitrary event.
OidcFrontChannelLogoutIncomingRequest
OidcFrontChannelRequestListeningOptions
OidcFrontChannelRequestListeningOptions_Web
OidcIdTokenVerificationOptions
OidcInternalUtilities
OidcJwksStoreLoader
OidcMemoryStore
A simple OidcStore implementation that relies on memory and doesn't actually store anything.
OidcMonitorSessionResult
OidcMonitorSessionStatusRequest
OidcNumericDateConverter
OidcPkcePair
A pair of (codeVerifier, codeChallenge) that can be used with PKCE (Proof Key for Code Exchange).
OidcPlatformSpecificOptions
Represents flutter platform-specific options.
OidcPlatformSpecificOptions_AppAuth_Android
OidcPlatformSpecificOptions_AppAuth_IosMacos
OidcPlatformSpecificOptions_Native
OidcPlatformSpecificOptions_Web
OidcPreLogoutEvent
An event that gets raised before the user is forgotten.
OidcProviderMetadata
The "OpenID Provider Metadata" as standardized by the spec https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata This also includes some metadata that are defined by other extensions
OidcPushedAuthorizationRequest
See https://datatracker.ietf.org/doc/html/rfc9126
OidcReadOnlyStore
An abstract interface for fetching data.
OidcSessionManagementSettings
OidcSimpleAuthorizationCodeFlowRequest
This authorization request takes only the minimal parameters and generates the rest.
OidcSimpleAuthorizationRequestContainer
The result of processing an OidcSimpleAuthorizationCodeFlowRequest or OidcSimpleImplicitFlowRequest.
OidcSimpleImplicitFlowRequest
This authorization request takes only the minimal parameters and generates the rest.
OidcState
Base class for any state
OidcStore
An abstract interface for storing/fetching data.
OidcToken
Represents a serializable token.
OidcTokenEventsManager
OidcTokenExpiredEvent
An event that gets raised after a token expired.
OidcTokenExpiringEvent
An event that gets raised before a token expires.
OidcTokenRequest
See https://developer.okta.com/docs/reference/api/oidc/
OidcTokenResponse
OidcUnknownMonitorSessionResult
OidcUser
A user is a verified JWT id_token, with an optional access_token.
OidcUserInfoResponse
OidcUserInfoSettings
OidcUserManagerBase
This class manages a single user's authentication status.
OidcUserManagerSettings
OidcUtils
Utilities for the Oidc spec
OidcValidMonitorSessionResult

Functions

defaultRefreshBefore(OidcToken token) Duration?
The default refreshBefore function, which refreshes 1 minute before the token expires.

Typedefs

OidcRefreshBeforeCallback = Duration? Function(OidcToken token)
The callback used to determine the expiring duration.

Exceptions / Errors

OidcException