Auth0
__CAPGO_KEEP_0__をコピーして、このプラグインのインストール手順と完全なマークダウンガイドを含む設定用の質問を取得する。
@capgo/capacitor-social-login Auth0を2つの方法でサポートしています:
SocialLoginAuthConnectエンドポイントの制御を完全に手動で行う場合は、auth0「プリセット」- 直接
oauth2Auth Connectプリセットの例
「Auth Connectプリセットの例」のセクション
コピー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',});Copy to clipboard
「Direct OAuth2 example」セクション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', },});関連ドキュメント
「関連ドキュメント」セクションAuth0から続けて
「Auth0から続けて」セクションCapgoを使用している場合 Auth0 認証とアカウントフローの計画と設定に使用 @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-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication の実装詳細を使用する