product-is icon indicating copy to clipboard operation
product-is copied to clipboard

No prompt shown to enter Email OTP

Open amanda-ariyaratne opened this issue 2 years ago • 2 comments

Describe the issue: When an SP is configured with Email OTP, at the login after submitting the username and password instead of presenting the screen to enter the OTP, the browser is redirected to <IS_SERVER>:<PORT>/carbon/admin/login.jsp. After logging in with credentials again, Error 405 - Method Not Allowed is shown.

Screenshot 2022-05-31 at 10 45 19

How to reproduce:

  1. Enable email sending module and configure the Email OTP identity provider.

  2. Deploy saml2-web-app-pickup-dispatch sample webapp and configure it as a service provider.

  3. Configure Local & Outbound Authentication Configuration --> Advanced Configuration of the SP as follows. Screenshot 2022-05-31 at 10 37 36

  4. Create user and edit profile to include the email address.

  5. Login to saml2-web-app-pickup-dispatch.

Expected behavior: After submitting the username and the password, the screen to enter the OTP should be loaded.

Environment information :

  • Product Version: IS 6.0.0-m1
  • OS: Mac OS 12.3.1
  • Database: Oracle 12c
  • Userstore: JDBC

amanda-ariyaratne avatar May 31 '22 05:05 amanda-ariyaratne

Thank you for reporting this issue.

Tested this on IS 6.0.0-m1 pack. Here the issue is EmailOTP authentication Endpoint URL is incorrect. The URL should be https://localhost:9443/authenticationendpoint/email_otp.do.

I sent a PR to update the sample configuration in the documentation: https://github.com/wso2/docs-is/pull/3019

asha15 avatar Jun 07 '22 06:06 asha15

The PR was sent to the incorrect branch. In 5.11.0, the email otp endpoint is a separate webapp. This change should be pushed to master only.

rksk avatar Aug 08 '22 08:08 rksk

@asha15 send the doc PR to 6.0.0

piraveena avatar Aug 12 '22 06:08 piraveena

@asha15 Please close this issue once you send the doc PR for 6.0.0 and revert from 5.11.0

piraveena avatar Aug 12 '22 06:08 piraveena

@rksk Thank you for pointing out. I reverted the changes [1] and 6.0.0 doc was updated with the correct email endpoint[2].

[1] https://github.com/wso2/docs-is/pull/3246 [2] https://github.com/wso2/docs-is/blob/master/en/docs/guides/mfa/2fa-email-otp.md

asha15 avatar Aug 12 '22 09:08 asha15