![](/img/trans.png)
[英]WSO2 Identity Server SMS OTP step then Email OTP step after Username and Password Authentication step
[英]How to resolve Email OTP authentication in WSO2 Identity server 5.3.0?
我按照下面的链接“ 配置电子邮件 otp”为WSO2身份服务器中的两步身份验证配置了电子邮件otp。
当我们检查日志时,发现以下跟踪,
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)
<Parameter name="GmailEmailEndpoint">https://www.googleapis.com/gmail/v1/users/[userId]/messages/send</Parameter> <Parameter name="GmailClientId">gmailClientIdValue</Parameter> <Parameter name="GmailClientSecret">gmailClientSecretValue</Parameter>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.