Skip to content

Commit edd0be0

Browse files
authored
Update OAuth2ClientConfiguration.kt
1 parent fe03022 commit edd0be0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

token-client-spring/src/main/kotlin/no/nav/security/token/support/client/spring/oauth2/OAuth2ClientConfiguration.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ class OAuth2ClientConfiguration : ImportAware {
3131
attrs = requireNotNull(fromMap(meta.getAnnotationAttributes(EnableOAuth2Client::class.java.name, false))) { "@EnableOAuth2Client is not present on importing class ${meta.className}" }
3232
}
3333

34-
@Bean
35-
fun oAuth2ClientRequestInterceptor(properties: ClientConfigurationProperties, service: OAuth2AccessTokenService) = OAuth2ClientRequestInterceptor(properties, service)
36-
37-
3834
@Bean
3935
fun oAuth2AccessTokenService(bearerTokenResolver: JwtBearerTokenResolver, client: OAuth2HttpClient) =
4036
if (attrs?.getBoolean("cacheEnabled") == true) {
@@ -72,4 +68,4 @@ class OAuth2ClientConfiguration : ImportAware {
7268
JwtBearerTokenResolver {
7369
throw UnsupportedOperationException("A no-op implementation of ${JwtBearerTokenResolver::class.java} is registered, cannot get token to exchange required for OnBehalfOf/TokenExchange grant")
7470
}
75-
}
71+
}

0 commit comments

Comments
 (0)