Config constructor Null safety
- {required String tenant,
- String? policy,
- required String clientId,
- String responseType = 'code',
- required String redirectUri,
- required String scope,
- String? responseMode,
- String? state,
- String? prompt,
- String? codeChallenge,
- String? codeChallengeMethod,
- String nonce = '12345',
- String tokenIdentifier = 'Token',
- String? clientSecret,
- String? resource,
- bool isB2C = false,
- String? loginHint,
- String? domainHint,
- String? codeVerifier,
- String? userAgent,
- bool isStub = false,
- AndroidOptions? aOptions,
Azure AD OAuth Configuration. Look at individual fields for description.
Implementation
Config({
required this.tenant,
this.policy,
required this.clientId,
this.responseType = 'code',
required this.redirectUri,
required this.scope,
this.responseMode,
this.state,
this.prompt,
this.codeChallenge,
this.codeChallengeMethod,
this.nonce = '12345',
this.tokenIdentifier = 'Token',
this.clientSecret,
this.resource,
this.isB2C = false,
this.loginHint,
this.domainHint,
this.codeVerifier,
this.userAgent,
this.isStub = false,
AndroidOptions? aOptions,
required this.navigatorKey,
}) : authorizationUrl = isB2C
? 'https://$tenant.b2clogin.com/$tenant.onmicrosoft.com/$policy/oauth2/v2.0/authorize'
: 'https://login.microsoftonline.com/$tenant/oauth2/v2.0/authorize',
tokenUrl = isB2C
? 'https://$tenant.b2clogin.com/$tenant.onmicrosoft.com/$policy/oauth2/v2.0/token'
: 'https://login.microsoftonline.com/$tenant/oauth2/v2.0/token',
aOptions = aOptions ?? AndroidOptions(encryptedSharedPreferences: true);