繁体   English   中英

如何解决WSO2 Identity Server 5.3.0中的电子邮件OTP身份验证?

[英]How to resolve Email OTP authentication in WSO2 Identity server 5.3.0?

我按照下面的链接“ 配置电子邮件 otp”为WSO2身份服务器中的两步身份验证配置了电子邮件otp。

在登录页面中输入用户名和密码后,我们应该被重定向到电子邮件OTP页面,但是我们将被重定向到https:// localhost:9443 / authenticationendpoint / samlsso_notification.do?status = Error + when + processing + the +认证+请求%21&statusMsg =请尝试+ + +登录一次。&SAMLResponse = pZLLbsJADEX3%2FYrR7AN5QZIRGYRaISGVTXksuqncxECkZAaNJ1X7900CETQLNl3a8r332PJs%2Fl2V7AsNFVql3Bu5nKHKdF6oY8p326UT87l8mhFUpX8Wb0hnrQjZ6iXlH2EQRbnvxkmWuBiHUQIhHkKYRp%2BTKSTgcbYiqnGlyIKyKfddL3LcxPH9rReISSCCaBS703fO9j2A3wI0SIrEJTLltVFCAxUkFFRIwmZis1i%2FimZUnI22OtMllxdC0QUattSmAvtY23aK3Dl0owKVLezPn%2BzHciBCYxtoLkudQXnSZGfjewrZX21jwdY0KJ91jmwPZY2Pc6ibvl4%2BR8P%2F57Oo7UktoSgx52N5Bb73GtivkQiOKHfNtgwacXuoDNrF2aGzGXj0gkH7Vvc%2FJH8B

当我们检查日志时,发现以下跟踪,

TID:[-1234] [] [2017-09-22 13:53:37,664]错误{org.wso2.carbon.identity.authenticator.emailotp.EmailOTPAuthenticator}-无法获取访问令牌org.wso2.carbon.identity .application.authentication.framework.exception.AuthenticationFailedException:无法在org.wso2.carbon.identity.application上的org.wso2.carbon.identity.authenticator.emailotp.EmailOTPAuthenticator.initiateAuthenticationRequest(EmailOTPAuthenticator.java:158)获取访问令牌org.wso2.carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.doAuthentication(DefaultStepHandler.java:466)上的.authentication.framework.AbstractApplicationAuthenticator.process(AbstractApplicationAuthenticator.java:64)在org.wso2 .carbon.identity.application.authentication.framework.handler.step.impl.DefaultStepHandler.handle(DefaultStepHandler.java:233)位于org.wso2.carbon.identity.application.authentication.framework.handler.sequence.impl.DefaultStepBasedSequenceHandler。句柄(DefaultStepBasedSe quenceHandler.java:175),位于org.wso2.carbon.identity.application.authentication.framework.handler.request.impl.DefaultAuthenticationRequestHandler.handle(DefaultAuthenticationRequestHandler.java:127),位于org.wso2.carbon.identity.application.authentication。位于org.wso2.carbon.carbon的framework.handler.request.impl.DefaultRequestCoordinator.handle(DefaultRequestCoordinator.java:142)位于org.wso2.carbon.identity.application.authentication.framework.CommonAuthenticationHandler.doPost(CommonAuthenticationHandler.java:46)位于org.wso2.carbon的org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.sendRequestToFramework(SAMLSSOProviderServlet.java:1004)的identity.application.authentication.framework.CommonAuthenticationHandler.doGet(CommonAuthenticationHandler.java:37)位于org.wso2.carbon.identity.sso.saml.servlet.SAMLSSOProviderServlet.doPost(SAMLSSOProviderServlet.java:108)的java.servlet.http处的identity.sso.saml.servlet.SAMLSSOProviderServlet.handleRequest(SAMLSSOProviderServlet.java:160)。 tt org.eclipse.equinox.http.helper.ContextPathServletAdaptor.service(ContextPathServletAdaptor.java:37)上的javax.servlet.http.HttpServlet.service(HttpServlet.java:731)上的pServlet.service(HttpServlet.java:650)。

如何解决这个问题的任何想法?

这很可能是由于无法连接您的电子邮件提供商(服务器)。 最初,您可以执行以下操作以进行诊断(假设您使用的是Gmail)

  1. 验证“ userId”,“ gmailClientIdValue”,“ gmailClientSecretValue”等有效。

<Parameter name="GmailEmailEndpoint">https://www.googleapis.com/gmail/v1/users/[userId]/messages/send</Parameter> <Parameter name="GmailClientId">gmailClientIdValue</Parameter> <Parameter name="GmailClientSecret">gmailClientSecretValue</Parameter>

  1. 尝试通过API调用使用其他工具(邮递员)发送的电子邮件。 这是为了验证您的计算机可以访问API端点。 这是为了排除任何网络级别的端口阻塞等。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM