Spring

Spring Security OAuth2 - Authorization endpoint

일태우 2020. 10. 7. 11:15
반응형

AuthorizationServerEndpointsConfigurer에서 PathMapping 메소드를 제공한다. 이 메서드는 두 개의 변수를 받는다.

  • 기본 경로 (프레임워크가 제공)
  • 커스텀 경로 ("/"로 시작)
public AuthorizationServerEndpointsConfigurer pathMapping(String defaultPath, String customPath) {
  this.patternMap.put(defaultPath, customPath);
  return this;
}

프레임워크가 제공하는 경로는 다음과 같다

  • Authorization Endpoint: /oauth/authorize
  • Token Endpoint: /oauth/token
  • Approval Endpoint: /oauth/confirm_access
  • Check Token Endpoint: /oauth/check_token
  • JWT Sign key Endpoint: /oauth/token_key
반응형

'Spring' 카테고리의 다른 글

SpringBoot Mysql Datasource 세팅  (0) 2020.11.16
Spring Cloud Gateway - API Gateway 맛보기  (5) 2020.10.19
Spring Jpa - Query DSL + Gradle 6 설정  (3) 2020.09.21
Spring Jpa - Paging api 처리하기  (0) 2020.09.18
Spring Data Jpa Auditing  (0) 2020.07.29