OneIdAuthConfig constructor
OneIdAuthConfig({
- required OneIdEnvironment environment,
- required String clientId,
- required String redirectUrl,
- List<
String> ? scopes, - String? discoveryUrl,
- String? authorizationEndpoint,
- String? tokenEndpoint,
- String? endSessionEndpoint,
- Duration connectTimeout = const Duration(seconds: 10),
- Duration receiveTimeout = const Duration(seconds: 30),
Implementation
OneIdAuthConfig({
required this.environment,
required this.clientId,
required this.redirectUrl,
List<String>? scopes,
String? discoveryUrl,
this.authorizationEndpoint,
this.tokenEndpoint,
this.endSessionEndpoint,
this.connectTimeout = const Duration(seconds: 10),
this.receiveTimeout = const Duration(seconds: 30),
}) : assert(clientId != '', 'clientId must not be empty'),
assert(redirectUrl != '', 'redirectUrl must not be empty'),
scopes = List.unmodifiable(
scopes ?? const ['openid', 'profile', 'offline_access'],
),
discoveryUrl = discoveryUrl ??
'${environment.baseUrl}/.well-known/openid-configuration';