AWS Cognito
Eine Einrichtungsvorschlagszeile mit den Installationsanweisungen und der vollständigen Markdown-Dokumentation für diesen Plugin kopieren.
Übersicht
ÜbersichtAmazon Cognito wird über das Auth Connect-Preset unterstützt. Sie können es auch manuell mit direkten OAuth2-Endpunkten konfigurieren. cognito Auth Connect-Preset-Beispiel
Übersicht
Zwischenablage kopierenimport { 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',});Übersicht
Zwischenablage kopierenimport { 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', },});Übersicht
Ionic Auth Connect-MigrationFortsetzen bei AWS Cognito
Abschnitt mit dem Titel “Fortsetzen bei AWS Cognito”Wenn Sie AWS Cognito verwenden AWS Cognito um die Authentifizierung und die Kontenflüsse zu planen, verbinden Sie es mit Verwenden Sie @capgo/capacitor-social-login zur Verwendung der native Fähigkeit in Verwenden Sie @capgo/capacitor-social-login @capgo/capacitor-social-login zur Implementierungsdetail in @capgo/capacitor-social-login @capgo/capacitor-passkey zur Implementierungsdetail in @capgo/capacitor-passkey @capgo/capacitor-native-biometrisch für die Implementierungsdetails in @capgo/capacitor-native-biometrisch, und Zweifaktor-Authentifizierung für die Implementierungsdetails in Zweifaktor-Authentifizierung.