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

SamlAuthenticationProvider should propagate actual validation errors #7375

Closed
fhanik opened this issue Sep 5, 2019 · 0 comments · Fixed by #7477
Closed

SamlAuthenticationProvider should propagate actual validation errors #7375

fhanik opened this issue Sep 5, 2019 · 0 comments · Fixed by #7477
Assignees
Labels
in: saml2 An issue in SAML2 modules type: enhancement A general enhancement
Milestone

Comments

@fhanik
Copy link
Contributor

fhanik commented Sep 5, 2019

Per #7260 (comment) it may be a good idea to propagate an Saml2AuthenticationException in the authentication provider with validation details.

This can be caught in the authentication entry point, or other location, to influence UI rendering or messaging.

@jzheaux jzheaux added in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) type: enhancement A general enhancement labels Sep 5, 2019
@jzheaux jzheaux added this to the 5.2.0 milestone Sep 5, 2019
@jzheaux jzheaux changed the title SamlAuthenticationProvider can expose actual validation errors SamlAuthenticationProvider should propagate actual validation errors Sep 5, 2019
@fhanik fhanik added in: saml2 An issue in SAML2 modules and removed in: oauth2 An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose) labels Sep 6, 2019
@fhanik fhanik self-assigned this Sep 24, 2019
@fhanik fhanik closed this as completed in d472e99 Sep 24, 2019
fhanik added a commit that referenced this issue Sep 24, 2019
…ation_exception

Propagate saml authentication exception #7375

Fixes gh-7375
fhanik added a commit to fhanik/spring-security that referenced this issue Sep 27, 2019
… and spring-projects#7375

Fixes spring-projectsgh-7377
Fixes spring-projectsgh-7375

spring-projects#7377
spring-projects#7375

Clean up code

- Authentication request factory should only throw Saml2Exception
- OpenSamlImplementation should only throw Saml2Exception
- Move the OpenSamlImplementation package private methods to the right
section
fhanik added a commit that referenced this issue Sep 27, 2019
…ation_exception

propagate saml authentication exception #7375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: saml2 An issue in SAML2 modules type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants