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

Improve to show error page with reason after failed authentication #6285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZiyamSanthosh
Copy link
Contributor

Currently, when an authentication step fails, if authenticator has the retryAuthenticationEnabled as true, the same authenticator will be executed and prompted for a user input and the error reason is showed on that page.If retryAuthenticationEnabled is set to false, the user will be sent to the caller path of the application.

For push notification based authentication, during an authentication failure situation like user denying the request, the user has to be shown with an error page saying the relevant failure reason. Since, we show the errors when retrying the authenticator in our current implementation, this requirement cannot be fulfilled.

This PR will enable the authenticator to redirect to an error page when the authentication failure occurs.

Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 45.30%. Comparing base (00f745a) to head (9077f77).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...on/framework/AbstractApplicationAuthenticator.java 0.00% 8 Missing ⚠️
...ndler/sequence/impl/GraphBasedSequenceHandler.java 0.00% 5 Missing and 2 partials ⚠️
...andler/request/impl/DefaultRequestCoordinator.java 0.00% 5 Missing ⚠️
...work/exception/ShowAuthFailureReasonException.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6285      +/-   ##
============================================
- Coverage     45.31%   45.30%   -0.01%     
+ Complexity    14544    14535       -9     
============================================
  Files          1656     1657       +1     
  Lines        104431   104454      +23     
  Branches      18372    18380       +8     
============================================
+ Hits          47324    47326       +2     
- Misses        50288    50308      +20     
- Partials       6819     6820       +1     
Flag Coverage Δ
unit 29.00% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant