AzureADV2Api constructor

AzureADV2Api(
  1. String identifier,
  2. String clientId,
  3. String clientSecret,
  4. String tokenUrl,
  5. String authorizationUrl,
  6. String redirectUrl, {
  7. List<String>? scopes,
  8. Client? client,
  9. Converter? converter,
  10. AuthStorage? authStorage,
})

Implementation

AzureADV2Api(String identifier, String clientId, String clientSecret,
    String tokenUrl, String authorizationUrl, String redirectUrl,
    {List<String>? scopes,
    http.Client? client,
    Converter? converter,
    AuthStorage? authStorage})
    : super.fromIdAndSecret(identifier, clientId, clientSecret,
          client: client,
          scopes: scopes,
          converter: converter,
          authStorage: authStorage) {
  this.tokenUrl = tokenUrl;
  this.authorizationUrl = authorizationUrl;
  this.redirectUrl = redirectUrl;
  this.forceRefresh = true;
  this.scopes = scopes ?? ["basic"];
  useClientSecret = clientSecret != "native";
}