AWS Cognito
このプラグインのインストール手順とフルマークダウンガイドを含むセットアッププロンプトをコピーしてください。
Amazon CognitoはAuth Connect presetを通じてサポートされています。直接OAuth2エンドポイントを使用して、手動で設定することもできます。 cognito Auth Connect presetの例
Section titled “Auth Connect presetの例”
コピーimport { SocialLoginAuthConnect } from '@capgo/capacitor-social-login';
await SocialLoginAuthConnect.initialize({ authConnect: { cognito: { domain: 'https://your-domain.auth.region.amazoncognito.com', clientId: 'your-cognito-client-id', redirectUrl: 'myapp://oauth/cognito', }, },});
const result = await SocialLoginAuthConnect.login({ provider: 'cognito',});Section titled “直接OAuth2の例”
コピーimport { SocialLogin } from '@capgo/capacitor-social-login';
await SocialLogin.initialize({ oauth2: { cognito: { appId: 'your-cognito-client-id', authorizationBaseUrl: 'https://your-domain.auth.region.amazoncognito.com/oauth2/authorize', accessTokenEndpoint: 'https://your-domain.auth.region.amazoncognito.com/oauth2/token', redirectUrl: 'myapp://oauth/cognito', scope: 'openid profile email', pkceEnabled: true, resourceUrl: 'https://your-domain.auth.region.amazoncognito.com/oauth2/userInfo', logoutUrl: 'https://your-domain.auth.region.amazoncognito.com/logout', }, },});
const result = await SocialLogin.login({ provider: 'oauth2', options: { providerId: 'cognito', },});Section titled “関連ドキュメント”
Ionic Auth Connectの移行AWS Cognito から続けて
セクション「AWS Cognito から続けて」AWS Cognito を使用している場合 AWS Cognito AWS Cognito と連携する Capgo の @capgo/capacitor-social-login を使用 Capgo の @capgo/capacitor-social-login Capgo の @capgo/capacitor-social-login Capgo の @capgo/capacitor-passkey Capgo の @capgo/capacitor-passkey @capgo/capacitor-social-login @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication Two-factor authenticationの実装詳細