コンテンツにスキップ

Microsoft Entra ID

GitHub

Microsoft Entra ID は、次の方法でサポートされています:

  • The azure Auth Connect プリセット
  • Direct oauth2 Microsoft の ID エンドポイント に対する直接的な構成

Auth Connect プリセットの例

「Auth Connect プリセットの例」
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',
});

Direct OAuth2 の例

「Direct OAuth2 の例」
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',
},
});
  • Replace common __CAPGO_KEEP_0__
  • resourceUrl __CAPGO_KEEP_1__

あなたが使用している Microsoft Entra ID バータイトショナに安了誁終、読終に得を上です Using @capgo/capacitor-サイタルトルートル for the native capability in Using @capgo/capacitor-social-login, @capgo/capacitor-サイタルトルートル for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-パトショナバータイト for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-ゲームコントルートル for the implementation detail in @capgo/capacitor-native-biometric, and アストィントルートル アストィントルートルでくだの安了。