如何解决为什么Cognito在注销电话后触发登录?
我正在使用企业auth connect插件在ionic 5中开发应用程序。 参考身份验证服务器是认知aws。 我登录没有大问题。 我在注销功能时出错,当我触发注销功能时,urel被调用 https://lea-users-qa.auth.eu-central-1.amazoncognito.com/logout? 之后,我不明白为什么,登录网址被称为 https://lea-users-qa.auth.eu-central-1.amazoncognito.com/login 因为它没有所有要登录的参数,所以中断了。 但是为什么他重新登录仍然是个谜…… 为什么在注销呼叫中看到redirectUri? https://lea-users-qa.auth.eu-central-1.amazoncognito.com/error?client_id=xxx&logout_uri=http%3A%2F%2Flocalhost%3A4200%3Flogout%3Dtrue&redirect_uri=http%3A%2F%2Flocalhost%3A4200
出于记录目的,我在项目内部没有登录页面,也没有注销页面,但是我仅调用插件的功能 这些是我对Web部件的配置,将在以后使用的设备上进行。
auth0WebConfig: {
// the auth provider
authConfig: 'cognito',// The platform which we are running on
platform: 'web',// client or application id for provider
// the discovery url for the provider
// OpenID configuration
discoveryUrl: 'https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_KrdNphJNh/.well-known/openid-configuration',// the URI to redirect to after log in
redirectUri: 'http://localhost:4200',// requested scopes from provider
scope: 'openid',// the audience,if applicable
audience: 'FILL-IN',// the URL to redirect to after log out
logoutUrl: 'http://localhost:4200?logout=true',// The type of iOS webview to use. 'shared' will use a webview that can share session/cookies
// on iOS to provide SSO across multiple apps but will cause a prompt for the user which asks them
// to confirm they want to share site data with the app. 'private' uses a webview which will not
// prompt the user but will not be able to share session/cookie data either for true SSO across
// multiple apps.
iosWebView: 'private',}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。