Config constructor
Config({
- required String tenantId,
- required String clientId,
- required String scope,
- required String redirectUri,
- required String responseType,
- BuildContext? context,
- String? clientSecret,
- String? resource,
- String contentType = 'application/x-www-form-urlencoded',
- String? userAgent,
- String nonce = 'nonce_value',
- int tokenRefreshAdvanceInSeconds = 300,
ResponseType to mobile usually is "code", and web usually is "id_token+token"
Implementation
Config(
{required this.tenantId,
required this.clientId,
required this.scope,
required this.redirectUri,
required this.responseType,
this.context,
this.clientSecret,
this.resource,
this.contentType = 'application/x-www-form-urlencoded',
this.userAgent,
this.nonce = 'nonce_value',
this.tokenRefreshAdvanceInSeconds = 300}) {
authorizationUrl =
'https://login.microsoftonline.com/$tenantId/oauth2/v2.0/authorize';
tokenUrl = 'https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token';
}