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 {
1818 with (handleRequest(HttpMethod .Get , " //openapi.json" )) {
1919 assertEquals(HttpStatusCode .OK , response.status())
2020 assertTrue(response.content!! .contains(" \" securitySchemes\" : {\n " +
21- " \" JWT \" : {\n " +
21+ " \" jwtAuth \" : {\n " +
2222 " \" bearerFormat\" : \" JWT\" ,\n " +
23- " \" name\" : \" JWT \" ,\n " +
23+ " \" name\" : \" jwtAuth \" ,\n " +
2424 " \" scheme\" : \" bearer\" ,\n " +
25- " \" type\" : \" openIdConnect \"\n " +
25+ " \" type\" : \" http \"\n " +
2626 " }\n " +
2727 " }" ))
2828 assertTrue(response.content!! .contains(" \" security\" : [ { } ]," ))
Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ object TestServerWithJwtAuth {
162162 listOf (listOf (
163163 AuthProvider .Security (
164164 SecuritySchemeModel (
165- SecuritySchemeType .openIdConnect ,
165+ SecuritySchemeType .http ,
166166 scheme = HttpSecurityScheme .bearer,
167167 bearerFormat = " JWT" ,
168- name = " JWT "
168+ name = " jwtAuth "
169169 ), emptyList<Scopes >()
170170 )
171171 ))
You can’t perform that action at this time.
0 commit comments