Auth0
このプラグインのインストールステップとフルマークダウンガイドを含むセットアッププロンプトをコピーする。
@capgo/capacitor-social-login Auth0をサポートする方法は2つあります:
SocialLoginAuthConnectwith theauth0preset- Direct
oauth2Direct OAuth2のエンドポイントを完全に制御したい場合は、
Auth Connect presetの例
Section titled “Auth Connect presetの例”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の例
Section titled “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を使用して認証とアカウントフローの計画を行っている場合、 Cloudflare Capacitor Using @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 二要素認証 Capgoで実装する詳細について