Auth0
Ein kopierfertiger Einrichtungsvorschlag mit den Installationsanweisungen und der vollständigen Markdown-Anleitung für diesen Plugin.
Übersicht
Übersicht@capgo/capacitor-social-login unterstützt Auth0 auf zwei Arten:
SocialLoginAuthConnectmit demauth0Voreinstellung- Direkt
oauth2Konfiguration, wenn Sie über die Endpunkte vollständige Kontrolle haben möchten
Beispiel für Auth Connect Voreinstellung
Zwischenablage kopierenimport { 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',});Übersicht
Zwischenablage kopierenimport { 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', },});Zugehörige Dokumente
Abschnitt mit dem Titel “Zugehörige Dokumente”Fortsetzung von Auth0
Abschnitt mit dem Titel “Fortsetzung von Auth0”Wenn Sie Auth0 verwenden um die Authentifizierung und die Kontenflüsse zu planen, verbinden Sie es mit Mit @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login zur Verwendung der native Fähigkeit in Mit @capgo/capacitor-social-login, for the native capability in Using @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-biometric für die Implementierungsdetails in @capgo/capacitor-native-biometric und Zwei-Faktor-Authentifizierung für die Implementierungsdetails in Zwei-Faktor-Authentifizierung