AzureADApiDeclaration constructor

const AzureADApiDeclaration(
  1. String name,
  2. String clientId,
  3. String resource,
  4. String redirectUrl, {
  5. String clientSecret = "native",
  6. String baseUrl = "/",
  7. String? authorizationUrl,
  8. String? tokenUrl,
  9. String azureTennant = "\$azureTennant",
  10. List<String>? scopes,
})

Implementation

const AzureADApiDeclaration(
    String name, this.clientId, this.resource, this.redirectUrl,
    {this.clientSecret = "native",
    String baseUrl: "/",
    String? authorizationUrl,
    String? tokenUrl,
    this.azureTennant = "\$azureTennant",
    this.scopes})
    : authorizationUrl = authorizationUrl ??
          "https://login.microsoftonline.com/$azureTennant/oauth2/authorize",
      tokenUrl = tokenUrl ??
          "https://login.microsoftonline.com/$azureTennant/oauth2/token",
      super(name, baseUrl: baseUrl);