簡體   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