Auth0
インストール手順と、このプラグインの完全なMarkdownガイドを含むセットアッププロンプトをコピーします。
@capgo/capacitor-social-login Auth0を2つの方法でサポートしています:
SocialLoginAuthConnectを使用して、auth0プリセット- 直接指定の
oauth2エンドポイントを完全に制御したい場合の設定
Auth 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',});Direct OAuth2 の例
「Direct OAuth2 の例」セクション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からの次のステップ」というセクション使用している場合 Auth0 認証とアカウントフローを計画するには、これを次と連携させてください @capgo/capacitor-social-login の使用 「@capgo/capacitor-social-login の使用」のネイティブ機能のために、 @capgo/capacitor-social-login @capgo/capacitor-social-login の実装の詳細については、 @capgo/capacitor-passkey @capgo/capacitor-passkey の実装詳細については、 @capgo/capacitor-native-biometric @capgo/capacitor-native-biometric の実装の詳細、および 2要素認証 二要素認証の実装の詳細については。