[Spring Boot Tutorial] 16. Swagger v3에 HTTP 기본인증(Basic Authentication) 설정하기
Security Scheme? Basic Authentication? securityScheme 설정 추가 Authorization 헤더 관련 익셉션 발생 @ControllerAdvice 를 이용한 익셉션별 response 설정 1. Security Scheme? OpenAPI 3에서는 리소스에 액세스할 때, 액세스 권한이 있는지에 대한 인가처리를 위해 security scheme(보안체계)를 사용합니다. OpenAPI 3에서 제공하고 있는 보안체계는 4가지가 있으며, 그에 대한 정보는 아래와 같습니다. http HTTP Authentications schema를 이용하는 방식 Authorization 헤더를 이용하는 방식 ex) Basic, Bearer 등... apiKey API key 헤더를 이용한..
2020. 10. 12. 16:14