Zum Inhalt springen

AWS Cognito

GitHub

Amazon Cognito wird über den Auth Connect-Voreinstellung unterstützt. Sie können es auch manuell mit direkten OAuth2-Endpunkten konfigurieren. cognito Amazon Cognito wird über den Auth Connect Voreinstellung unterstützt. Sie können es auch manuell mit direkten OAuth2-Endpunkten konfigurieren.

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',
});
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',
},
});

If Sie sich für die Authentifizierung und die Kontenflüsse entscheiden, verwenden Sie AWS Cognito und verbinden Sie es mit Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login Verbinden Sie @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-social-login mit AWS Cognito @capgo/capacitor-social-login @capgo/capacitor-social-login @capgo/capacitor-passkey @capgo/capacitor-passkey @capgo/capacitor-native-biometric @capgo/capacitor-native-biometric @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Zwei-Faktor-Authentifizierung für die Implementierungsdetails in der Zwei-Faktor-Authentifizierung.