Обновление mock конфигурации для oauth2

This commit is contained in:
Struchkov Mark 2024-11-04 10:36:59 +03:00
parent e91208a7d0
commit 0e6e465fc7
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
2 changed files with 6 additions and 5 deletions

View File

@ -57,6 +57,7 @@ public class UserController {
return HttpStatus.OK; return HttpStatus.OK;
} }
// http://localhost:8080/api/user/1
@SecurityRequirement(name = "jsessionid") @SecurityRequirement(name = "jsessionid")
@GetMapping(value = "{key}", produces = APPLICATION_JSON_VALUE) @GetMapping(value = "{key}", produces = APPLICATION_JSON_VALUE)
@Operation(summary = "Получить пользователя") @Operation(summary = "Получить пользователя")

View File

@ -10,7 +10,7 @@ spring:
registration: registration:
mocklab: mocklab:
provider: mocklab provider: mocklab
client-authentication-method: basic client-authentication-method: client_secret_basic
authorization-grant-type: authorization_code authorization-grant-type: authorization_code
scope: profile, email scope: profile, email
redirect-uri: http://localhost:8080/login/oauth2/code/ redirect-uri: http://localhost:8080/login/oauth2/code/
@ -18,8 +18,8 @@ spring:
clientSecret: whatever clientSecret: whatever
provider: provider:
mocklab: mocklab:
authorization-uri: https://oauth.mocklab.io/oauth/authorize authorization-uri: https://oauth.wiremockapi.cloud/oauth/authorize
token-uri: https://oauth.mocklab.io/oauth/token token-uri: https://oauth.wiremockapi.cloud/oauth/token
user-info-uri: https://oauth.mocklab.io/userinfo user-info-uri: https://oauth.wiremockapi.cloud/userinfo
user-name-attribute: sub user-name-attribute: sub
jwk-set-uri: https://oauth.mocklab.io/.well-known/jwks.json jwk-set-uri: https://oauth.wiremockapi.cloud/.well-known/jwks.json