AWS Cognito
Einen Einrichtungsvorschlag 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-MigrationFortsetzung von AWS Cognito
Abschnitt mit dem Titel “Fortsetzung von 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 nativen Fähigkeit in Verwenden Sie @capgo/capacitor-social-login @capgo/capacitor-social-login zur Implementierungsdetails in @capgo/capacitor-social-login @capgo/capacitor-passkey zur Implementierungsdetails in @capgo/capacitor-passkey @capgo/capacitor-native-biometric für die Implementierungsdetails in @capgo/capacitor-native-biometric, und Zweifaktor-Authentifizierung für die Implementierungsdetails in Zweifaktor-Authentifizierung.