Microsoft Entra ID
Installieren
Übersicht
Abschnitt mit dem Titel „Übersicht“Microsoft Entra ID wird über folgende Möglichkeiten unterstützt:
- Der
azureAuth Connect-Voreinstellung - Direkte
oauth2Konfiguration gegen Microsoft-Identitätsendpunkte
Beispiel für Auth Connect-Voreinstellung
Abschnitt mit dem Titel „Beispiel für Auth Connect-Voreinstellung“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',});Direktes OAuth2-Beispiel
Abschnitt mit dem Titel “Direkter OAuth2-Beispiel”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', },});- Ersetzen
commonmit Ihrer Tenant-ID für Single-Tenant-Anwendungen. resourceUrlkann auf Microsoft Graph verweisen, wenn Sie Profildaten sofort nach der Anmeldung erhalten möchten.
Verwandte Dokumente
Abschnitt mit dem Titel “Verwandte Dokumente”Fortschrittlich von Microsoft Entra ID fortsetzen
Abschnitt mit dem Titel “Fortschrittlich von Microsoft Entra ID fortsetzen”Wenn Sie Microsoft Entra ID zur Planung der Authentifizierung und der Kontoflows verwenden Microsoft Entra ID um es mit @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login zu verbinden Verwenden Sie @capgo/capacitor-social-login für die native Fähigkeit in @capgo/capacitor-social-login @capgo/capacitor-social-login für die Implementierungsdetails in @capgo/capacitor-social-login @capgo/capacitor-passkey für die Implementierungsdetails in @capgo/capacitor-passkey @capgo/capacitor-passkey @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric für die Implementierungsdetails in @capgo/capacitor-native-biometric, und Zweifaktor-Authentifizierung für die Implementierungsdetails in Zweifaktor-Authentifizierung.