File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ internal class JwtAuthDocumentationGenerationTest {
18
18
with (handleRequest(HttpMethod .Get , " //openapi.json" )) {
19
19
assertEquals(HttpStatusCode .OK , response.status())
20
20
assertTrue(response.content!! .contains(" \" securitySchemes\" : {\n " +
21
- " \" JWT \" : {\n " +
21
+ " \" jwtAuth \" : {\n " +
22
22
" \" bearerFormat\" : \" JWT\" ,\n " +
23
- " \" name\" : \" JWT \" ,\n " +
23
+ " \" name\" : \" jwtAuth \" ,\n " +
24
24
" \" scheme\" : \" bearer\" ,\n " +
25
- " \" type\" : \" openIdConnect \"\n " +
25
+ " \" type\" : \" http \"\n " +
26
26
" }\n " +
27
27
" }" ))
28
28
assertTrue(response.content!! .contains(" \" security\" : [ { } ]," ))
Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ object TestServerWithJwtAuth {
162
162
listOf (listOf (
163
163
AuthProvider .Security (
164
164
SecuritySchemeModel (
165
- SecuritySchemeType .openIdConnect ,
165
+ SecuritySchemeType .http ,
166
166
scheme = HttpSecurityScheme .bearer,
167
167
bearerFormat = " JWT" ,
168
- name = " JWT "
168
+ name = " jwtAuth "
169
169
), emptyList<Scopes >()
170
170
)
171
171
))
You can’t perform that action at this time.
0 commit comments