Auth0
Einen Setup-Befehl mit den Installations-Schritten und der vollständigen Markdown-Anleitung für diesen Plugin kopieren.
Übersicht
Überschrift “Übersicht”@capgo/capacitor-social-login Auth0 unterstützt in zwei Arten:
SocialLoginAuthConnectmit demauth0Voreinstellung- Direkt
oauth2Konfiguration, wenn Sie die volle Kontrolle über Endpunkte haben möchten
Auth Connect-Voreinstellung-Beispiel
Abschnitt mit dem Titel “Auth Connect-Voreinstellung-Beispiel”import { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { auth0: { domain: 'https://your-tenant.auth0.com', clientId: 'your-auth0-client-id', redirectUrl: 'myapp://oauth/auth0', audience: 'https://your-api.example.com', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'auth0',});Direktes OAuth2-Beispiel
Abschnitt mit dem Titel “Direktes OAuth2-Beispiel”import { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { auth0: { appId: 'your-auth0-client-id', authorizationBaseUrl: 'https://your-tenant.auth0.com/authorize', accessTokenEndpoint: 'https://your-tenant.auth0.com/oauth/token', redirectUrl: 'myapp://oauth/auth0', scope: 'openid profile email offline_access', pkceEnabled: true, additionalParameters: { audience: 'https://your-api.example.com', }, logoutUrl: 'https://your-tenant.auth0.com/v2/logout', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'auth0', },});Verwandte Dokumente
Abschnitt mit dem Titel “Verwandte Dokumente”Weitermachen von Auth0
Abschnitt mit dem Titel “Weitermachen von Auth0”Wenn Sie Authentifizierung und Account-Flüsse mit Auth0 planen, verbinden Sie es mit Mit @capgo/capacitor-social-login für die native Fähigkeit in Mit @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-native-biometrisch für die Implementierungsdetails in @capgo/capacitor-native-biometrisch, und Zweifaktor-Authentifizierung für die Implementierungsdetails in Zweifaktor-Authentifizierung.