Microsoft Entra ID
__CAPGO_KEEP_0__
__CAPGO_KEEP_0__
Section titled “Overview”Microsoft Entra IDは、以下の方法でサポートされています:
- The
azureAuth Connect preset - Direct
oauth2Microsoft identityエンドポイントへの直接の設定
Auth Connect presetの例
コピーするimport { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { azure: { tenantId: 'common', clientId: 'your-azure-client-id', redirectUrl: 'myapp://oauth/azure', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'azure',});Section titled “Direct OAuth2 example”
コピーするimport { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { azure: { appId: 'your-azure-client-id', authorizationBaseUrl: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', accessTokenEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/token', redirectUrl: 'myapp://oauth/azure', scope: 'openid profile email User.Read', pkceEnabled: true, resourceUrl: 'https://graph.microsoft.com/v1.0/me', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'azure', },});Notes
「Notes」- Replace
common単一テナントアプリ用のテナントIDを入力してください。 resourceUrlMicrosoft Graphに指すことで、ログイン後にプロフィールデータを即座に取得できます。
関連ドキュメント
OAuth2とOIDCプロバイダー「Microsoft Entra IDから続けて」
CapgoIf you are using Microsoft Entra ID を使用して Using @capgo/capacitor-social-login for the native capability in Using @capgo/capacitor-social-login, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-native-biometric, and @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-native-biometric、 __CAPGO_KEEP_0__の実装詳細については、2要素認証の詳細を参照してください。