OpenIdConnectClient class

Properties

audiences List<String>?
final
autoRefresh bool
final
changes Stream<AuthEvent>
no setter
clientId String
final
clientSecret String?
final
configuration OpenIdConfiguration?
getter/setter pair
currentEvent AuthEvent?
getter/setter pair
discoveryDocumentUrl String
final
hashCode int
The hash code for this object.
no setterinherited
hasTokenExpired bool
no setter
identity OpenIdIdentity?
no setter
initializationComplete bool
no setter
isTokenAboutToExpire bool
no setter
redirectUrl String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
final
webUseRefreshTokens bool
final

Methods

clearIdentity() Future<void>
dispose() → void
isLoggedIn() FutureOr<bool>
loginInteractive({required BuildContext context, required String title, String? userNameHint, Map<String, String>? additionalParameters, Iterable<String>? prompts, bool useWebPopup = true, int popupWidth = 640, int popupHeight = 600}) Future<OpenIdIdentity>
loginWithDeviceCode() Future<OpenIdIdentity>
loginWithPassword({required String userName, required String password, Iterable<String>? prompts, Map<String, String>? additionalParameters}) Future<OpenIdIdentity>
logout() Future<void>
logoutToken() Future<void>
Keycloak compatible logout see https://www.keycloak.org/docs/latest/securing_apps/#logout-endpoint
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh({bool raiseEvents = true}) Future<bool>
reportError(String errorMessage) → void
revokeToken() Future<void>
sendRequests<T>(Iterable<Future<T>> requests()) Future<void>
toString() String
A string representation of this object.
inherited
verifyToken() FutureOr<bool>

Operators

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

Static Methods

create({required String discoveryDocumentUrl, required String clientId, String? redirectUrl, String? clientSecret, bool autoRefresh = true, bool webUseRefreshTokens = true, List<String> scopes = DEFAULT_SCOPES, List<String>? audiences}) Future<OpenIdConnectClient>

Constants

DEFAULT_SCOPES → const List<String>
OFFLINE_ACCESS_SCOPE → const String