Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- application.properties
- 백트래킹
- Application Event
- @Profile
- 알고리즘
- 외부설정
- EnableAutoConfiguration
- 백준
- JsonSerializer
- Spring Security
- @ConfigurationProperties
- 리소스 서버
- rest api
- JPA
- 브루트포스
- 다익스트라
- 리소스핸들러
- 스프링 부트
- Application Argument
- webjar
- 백기선
- OAuth2
- AuthenticationPrincipal
- 정적 리소스
- WebApplication Type
- HATEOAS
- cors
- 스프링부트
- Application Runner
- HttpMessageConverters
Archives
- Today
- Total
목록리소스 서버 (1)
아카이브
[스프링 기반 REST API 개발] 시큐리티 OAuth2 리소스 서버 설정하기
리소스 서버 OAuth2 인증 서버와 연동해서 사용한다. 리소스 인증 서버는 리소스를 제공하는 서버와 같이 두고, OAuth2 인증 서버는 따로 분리하는 게 맞다. 리소스에 대한 요청이 들어오면, OAuth2 서버에 access_token이 존재하는지 확인하고 없으면 접근을 제한한다. ResourceServer 설정 @EnableResourceServer extends ResourceServerConfigurerAdapter configure(ResourceServerSecurityConfigurer resources) resource_id configure(HttpSecurity http) anonymous GET /api/** : permit all POST /api/**: authenticated ..
Spring/스프링 기반 REST API 개발
2021. 1. 9. 21:09