diff --git a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/configuration/AuthenticationFilter.kt b/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/configuration/AuthenticationFilter.kt index 5831bac..620f924 100644 --- a/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/configuration/AuthenticationFilter.kt +++ b/src/main/kotlin/com/example/v1oauthauthorizationservice/infrastructure/configuration/AuthenticationFilter.kt @@ -36,6 +36,10 @@ class AuthenticationFilter( response: HttpServletResponse, filterChain: FilterChain ) { + if (request.requestURI.contains("/oauth2/token")) { + filterChain.doFilter(request, response) + return + } request.getParameter("access_token")?.let { accessToken -> setAuthenticationByAccessToken(accessToken)