Skip to content

Commit

Permalink
update :: 권한 제한
Browse files Browse the repository at this point in the history
  • Loading branch information
4mjeo committed Feb 28, 2024
1 parent bec7847 commit 387652c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example.v1oauthauthorizationservice.infrastructure.configuration.security

import com.example.v1oauthauthorizationservice.infrastructure.configuration.AuthenticationFilter
import com.example.v1oauthauthorizationservice.infrastructure.user.security.AuthDetailsService
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.core.Ordered
Expand All @@ -18,8 +17,7 @@ import org.springframework.security.web.access.intercept.AuthorizationFilter
@EnableWebSecurity(debug = true)
@Configuration
class SecurityConfiguration(
private val authenticationFilter: AuthenticationFilter,
private val authDetailsService: AuthDetailsService
private val authenticationFilter: AuthenticationFilter
) {

@Bean
Expand Down Expand Up @@ -51,10 +49,10 @@ class SecurityConfiguration(
.requestMatchers(HttpMethod.POST, "/oauth2/client").authenticated()
.requestMatchers(HttpMethod.PATCH, "/oauth2/client/{client-id}").authenticated()
.requestMatchers(HttpMethod.GET, "/oauth2/client/{client-id}/secret").authenticated()
.requestMatchers(HttpMethod.POST, "/oauth2/token").authenticated()
.requestMatchers(HttpMethod.POST, "/oauth2/token").permitAll()
.requestMatchers(HttpMethod.GET, "/jwk").permitAll()
.requestMatchers(HttpMethod.GET, "/oauth2/authorize").authenticated()
.requestMatchers(HttpMethod.GET, "/oauth2/userinfo").authenticated()
.requestMatchers(HttpMethod.GET, "/oauth2/userinfo").permitAll()
.anyRequest().authenticated()
}

Expand Down

0 comments on commit 387652c

Please sign in to comment.