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