JwtIssuerReactiveAuthenticationManagerResolver eagerly creates Exceptions #7995
Labels
in: oauth2
An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)
type: enhancement
A general enhancement
Milestone
Summary
JwtIssuerReactiveAuthenticationManagerResolver
eagerly createsException
s which are not thrown alwayssee
spring-security/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolver.java
Lines 122 to 125 in a90e579
and
spring-security/oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtIssuerReactiveAuthenticationManagerResolver.java
Lines 143 to 146 in a90e579
Actual Behavior
Exceptions are instantiated always
Expected Behavior
Exceptions should be instantiated lazily only when they are needed
Version
5.3.0.BUILD-SNAPSHOT
The text was updated successfully, but these errors were encountered: