diff --git a/src/main/java/com/groom/swipo/global/config/SwaggerConfig.java b/src/main/java/com/groom/swipo/global/config/SwaggerConfig.java index 0e05407..064ea1c 100644 --- a/src/main/java/com/groom/swipo/global/config/SwaggerConfig.java +++ b/src/main/java/com/groom/swipo/global/config/SwaggerConfig.java @@ -6,11 +6,8 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; -import io.swagger.v3.oas.models.security.SecurityRequirement; -import io.swagger.v3.oas.models.security.SecurityScheme; import io.swagger.v3.oas.models.servers.Server; @Configuration @@ -31,8 +28,6 @@ private Info apiInfo() { @Bean public OpenAPI openAPI() { - String authHeader = "Authorization"; - Server localServer = new Server(); localServer.description("Local Server") .url(localUrl); @@ -43,13 +38,6 @@ public OpenAPI openAPI() { return new OpenAPI() .info(apiInfo()) - .addSecurityItem(new SecurityRequirement().addList(authHeader)) - .components(new Components() - .addSecuritySchemes(authHeader, new SecurityScheme() - .name(authHeader) - .type(SecurityScheme.Type.HTTP) - .scheme("Bearer") - .bearerFormat("accessToken"))) .servers(Arrays.asList(localServer, prodServer)); } }