Я настроил пул Cognito для включения федерации удостоверений с помощью Facebook, и он работает
https://angularamplifybdffe808-bdffe808-sso.auth.eu-west-1.amazoncognito.com/login?client_id=7sanl497i9rq86ph7eafktdh4i&response_type=code&scope=aws.cognito.signin.user.admin+email+openid+phone+profile&redirect_uri=http: // localhost: 4200 /
Однако с помощью I создайте проект ANGULAR и используйте ampify для создания компонента аутентификатора, как упомянуто здесь , окно входа в Facebook не отображается. Можете ли вы помочь, пожалуйста
http://amplifyangular.s3-website-eu-west-1.amazonaws.com/
вот мой код
import Amplify from 'aws-amplify';
const awsmobile = {
"aws_project_region": "eu-west-1",
"aws_cognito_identity_pool_id": "*****",
"aws_cognito_region": "eu-west-1",
"aws_user_pools_id": "eu-west-1_*****",
"aws_user_pools_web_client_id": "7sanl497i9rq86ph7eafktdh4i",
"oauth": {
"domain": "angularamplify******-sso.auth.eu-west-1.amazoncognito.com",
"scope": [
"phone",
"email",
"openid",
"profile",
"aws.cognito.signin.user.admin"
],
"redirectSignIn": "http://localhost:4200/",
"redirectSignOut": "http://localhost:4200/",
"responseType": "code"
},
"federationTarget": "COGNITO_USER_POOLS"
};
Amplify.configure(awsmobile);
А вот мой auth.component. html
<amplify-authenticator></amplify-authenticator>