Skip to content

Commit c81da5d

Browse files
committed
오류 수정
1 parent 4d74b10 commit c81da5d

File tree

4 files changed

+9
-15
lines changed

4 files changed

+9
-15
lines changed

.github/workflows/gradle.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,9 @@ jobs:
121121
Environment=SPRINGDOC_SWAGGER_UI_ENABLED=true
122122
Environment=SPRINGDOC_API_DOCS_ENABLED=true
123123
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_ENABLED=true
124-
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_USE_BASIC_AUTH=true
125-
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_REALM=swagger-ui
126-
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_APP_NAME=Swagger UI
127-
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_USE_PKCE=true
124+
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_ENABLED=true
125+
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_NAME=Authorization
126+
Environment=SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_TYPE=Bearer
128127
129128
ExecStart=/usr/lib/jvm/java-17-openjdk-amd64/bin/java \
130129
-Xms512m \
@@ -148,10 +147,9 @@ jobs:
148147
--springdoc.swagger-ui.enabled=${SPRINGDOC_SWAGGER_UI_ENABLED} \
149148
--springdoc.api-docs.enabled=${SPRINGDOC_API_DOCS_ENABLED} \
150149
--springdoc.swagger-ui.security.enabled=${SPRINGDOC_SWAGGER_UI_SECURITY_ENABLED} \
151-
--springdoc.swagger-ui.security.oauth2.use-basic-authentication-with-access-code-grant=${SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_USE_BASIC_AUTH} \
152-
--springdoc.swagger-ui.security.oauth2.realm=${SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_REALM} \
153-
--springdoc.swagger-ui.security.oauth2.app-name=${SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_APP_NAME} \
154-
--springdoc.swagger-ui.security.oauth2.use-pkce-with-authorization-code-grant=${SPRINGDOC_SWAGGER_UI_SECURITY_OAUTH2_USE_PKCE} \
150+
--springdoc.swagger-ui.security.bearer.enabled=${SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_ENABLED} \
151+
--springdoc.swagger-ui.security.bearer.name=${SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_NAME} \
152+
--springdoc.swagger-ui.security.bearer.type=${SPRINGDOC_SWAGGER_UI_SECURITY_BEARER_TYPE} \
155153
--springdoc.swagger-ui.configUrl=/v3/api-docs/swagger-config \
156154
--springdoc.swagger-ui.url=/v3/api-docs \
157155
--logging.level.root=${LOGGING_LEVEL_ROOT} \
21 Bytes
Binary file not shown.
21 Bytes
Binary file not shown.

Location-based-target-authentication/src/main/resources/application.properties

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,9 @@ springdoc.swagger-ui.filter=true
6565
springdoc.swagger-ui.doc-expansion=none
6666
springdoc.paths-to-match=/**
6767
springdoc.swagger-ui.security.enabled=true
68-
springdoc.swagger-ui.security.oauth2.use-basic-authentication-with-access-code-grant=true
69-
springdoc.swagger-ui.security.oauth2.client-id=your-client-id
70-
springdoc.swagger-ui.security.oauth2.client-secret=your-client-secret
71-
springdoc.swagger-ui.security.oauth2.realm=swagger-ui
72-
springdoc.swagger-ui.security.oauth2.app-name=Swagger UI
73-
springdoc.swagger-ui.security.oauth2.use-pkce-with-authorization-code-grant=true
74-
springdoc.swagger-ui.security.oauth2.additional-query-string-params=audience=https://api.example.com
68+
springdoc.swagger-ui.security.bearer.enabled=true
69+
springdoc.swagger-ui.security.bearer.name=Authorization
70+
springdoc.swagger-ui.security.bearer.type=Bearer
7571

7672
# CORS Configuration
7773
spring.web.cors.allowed-origins=*

0 commit comments

Comments
 (0)