diff --git a/api/src/main/java/com/teamnexters/lazy/api/config/SwaggerConfig.java b/api/src/main/java/com/teamnexters/lazy/api/config/SwaggerConfig.java index 2fba6d7..4c2cd02 100644 --- a/api/src/main/java/com/teamnexters/lazy/api/config/SwaggerConfig.java +++ b/api/src/main/java/com/teamnexters/lazy/api/config/SwaggerConfig.java @@ -1,9 +1,11 @@ package com.teamnexters.lazy.api.config; import io.swagger.v3.oas.annotations.OpenAPIDefinition; +import io.swagger.v3.oas.annotations.enums.SecuritySchemeType; import io.swagger.v3.oas.annotations.info.Contact; import io.swagger.v3.oas.annotations.info.Info; import io.swagger.v3.oas.annotations.info.License; +import io.swagger.v3.oas.annotations.security.SecurityScheme; import org.springframework.context.annotation.Configuration; @OpenAPIDefinition( @@ -16,6 +18,7 @@ url = "https://www.apache.org/licenses/LICENSE-2.0.html") ) ) +@SecurityScheme(name = "bearerAuth", type = SecuritySchemeType.HTTP, scheme = "bearer", bearerFormat = "JWT") @Configuration public class SwaggerConfig { } \ No newline at end of file