OAuth2LoginAuthenticationProvider information loss at exception handling #10228
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Expected Behavior
The framework should provide with relevant exception information in case of
javax.net.ssl.trustStore
and/orjavax.net.ssl.trustStorePassword
configuration issue (incorrect trust store password or even missing trust store), when using OAuth2 authorizaton code flow against an access management system with custom https certificate.This is what actually happens for example with a simple direct
RestTemplate
call likenew RestTemplate().headForHeaders("https://something"));
:Current Behavior
While using OAuth2 authorization code flow, in the case of for example bad trust store password, after successful authentication on AM, the browser is redirected back to the
login?error
page of the Spring Boot application, and it shows the following:Problems with the current behavior:
NoSuchAlgorithmException
).NoSuchAlgorithmException
, which is misleading.Example log:
Context
How has this issue affected you? I have been struggling a few hours to find out what the hell is happening.
What are you trying to accomplish? N/A
What other alternatives have you considered? N/A
Are you aware of any workarounds? N/A
The text was updated successfully, but these errors were encountered: