Skip to content

Commit

Permalink
[#3] Swagger Bearer+JWT Scheme 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Oct 13, 2021
1 parent 8cd85e3 commit d71c3a7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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 {
}

0 comments on commit d71c3a7

Please sign in to comment.