Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gateway] manage PolicyException on reset password flow #7574

Closed
leleueri opened this issue Apr 26, 2022 · 1 comment
Closed

[gateway] manage PolicyException on reset password flow #7574

leleueri opened this issue Apr 26, 2022 · 1 comment

Comments

@leleueri
Copy link
Contributor

When a flow fails on the RESET_PASSWORD flow, a blank page is displayed with internal error message.

Expected Behavior

We should redirect to the "reset password" cofirmation page with an error message

Current Behavior

A blank page is displayed with internal error message.

Possible Solution

Implement a Failure Handler on the RESET_PASSWORD flow to redirect in case of PolichyCHainException

Steps to Reproduce (for bugs)

  1. create a http callout that hit a not found resource (enable the exit on error toggle)
  2. reset the user password
@patelami
Copy link

patelami commented May 6, 2022

Env: 3.17.x
Result: PASS

Given I have added HTTP call out flow on reset password
And an HTTP callout hits not found unknown resource
And I setup exit on error true with custom message
And Initiate a login flow
And I request reset password
Then I should see custom error message PASS

Given I have added HTTP call out flow on reset password
And an HTTP callout hits to https://api.gravitee.io/echo
And I setup exit on error false
And Initiate a login flow
And I request reset password
Then I should successfully reset password PASS

@patelami patelami closed this as completed May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants