Skip to content

Commit bf1889b

Browse files
committed
Fix #33355: cast to ClientAuthenticationMethod.class
1 parent 0162b3b commit bf1889b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/eu/openanalytics/containerproxy/auth/impl/oidc/OpenIDConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.springframework.security.oauth2.client.web.DefaultOAuth2AuthorizedClientManager;
3838
import org.springframework.security.oauth2.client.web.OAuth2AuthorizedClientRepository;
3939
import org.springframework.security.oauth2.core.AuthorizationGrantType;
40+
import org.springframework.security.oauth2.core.ClientAuthenticationMethod;
4041
import org.springframework.security.oauth2.jose.jws.SignatureAlgorithm;
4142
import org.springframework.security.oauth2.jwt.JwtDecoderFactory;
4243

@@ -88,7 +89,7 @@ public ClientRegistrationRepository clientRegistrationRepository() {
8889
.clientId(environment.getProperty("proxy.openid.client-id"))
8990
.clientSecret(environment.getProperty("proxy.openid.client-secret"))
9091
.userInfoUri(environment.getProperty("proxy.openid.userinfo-url"))
91-
.clientAuthenticationMethod(environment.getProperty("proxy.openid.client-authentication-method"))
92+
.clientAuthenticationMethod(environment.getProperty("proxy.openid.client-authentication-method", ClientAuthenticationMethod.class))
9293
.build();
9394

9495
return new InMemoryClientRegistrationRepository(Collections.singletonList(client));

0 commit comments

Comments
 (0)