Skip to content

Commit

Permalink
Merge pull request #752 from mpanik/fix-usage-of-jwt-auth-converter
Browse files Browse the repository at this point in the history
Fix usage of OktaJwtAuthenticationConverter to use constructor with props
  • Loading branch information
arvindkrishnakumar-okta authored Feb 3, 2025
2 parents 762bb7b + d202880 commit a72c81b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ private void configureLogin(HttpSecurity http, OktaOAuth2Properties oktaOAuth2Pr

private void configureResourceServerForJwtValidation(HttpSecurity http, OktaOAuth2Properties oktaOAuth2Properties) throws Exception {
http.oauth2ResourceServer()
.jwt().jwtAuthenticationConverter(new OktaJwtAuthenticationConverter(oktaOAuth2Properties.getGroupsClaim()));
.jwt().jwtAuthenticationConverter(new OktaJwtAuthenticationConverter(oktaOAuth2Properties));
}

private void configureResourceServerForOpaqueTokenValidation(HttpSecurity http, OktaOAuth2Properties oktaOAuth2Properties) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Object postProcessAfterInitialization(Object bean, String beanName) {
final ServerHttpSecurity http = (ServerHttpSecurity) bean;
http.oauth2ResourceServer().jwt()
.jwtAuthenticationConverter(new ReactiveJwtAuthenticationConverterAdapter(
new OktaJwtAuthenticationConverter(oktaOAuth2Properties.getGroupsClaim())));
new OktaJwtAuthenticationConverter(oktaOAuth2Properties)));
}
return bean;
}
Expand Down

0 comments on commit a72c81b

Please sign in to comment.