microsoft static method

DVOAuth2Config microsoft({
  1. required String clientId,
  2. required Uri redirectUri,
  3. String tenant = 'common',
  4. String? clientSecret,
  5. List<String> scopes = const <String>['openid', 'email', 'profile'],
})

Implementation

static DVOAuth2Config microsoft({
  required String clientId,
  required Uri redirectUri,
  String tenant = 'common',
  String? clientSecret,
  List<String> scopes = const <String>['openid', 'email', 'profile'],
}) =>
    DVOAuth2Config(
      clientId: clientId,
      clientSecret: clientSecret,
      redirectUri: redirectUri,
      scopes: scopes,
      authorizationEndpoint: Uri.https(
          'login.microsoftonline.com', '/$tenant/oauth2/v2.0/authorize'),
      tokenEndpoint:
          Uri.https('login.microsoftonline.com', '/$tenant/oauth2/v2.0/token'),
      userInfoEndpoint: Uri.https('graph.microsoft.com', '/oidc/userinfo'),
    );