Обновление mock конфигурации для oauth2
This commit is contained in:
parent
e91208a7d0
commit
0e6e465fc7
@ -57,6 +57,7 @@ public class UserController {
|
||||
return HttpStatus.OK;
|
||||
}
|
||||
|
||||
// http://localhost:8080/api/user/1
|
||||
@SecurityRequirement(name = "jsessionid")
|
||||
@GetMapping(value = "{key}", produces = APPLICATION_JSON_VALUE)
|
||||
@Operation(summary = "Получить пользователя")
|
||||
|
@ -10,7 +10,7 @@ spring:
|
||||
registration:
|
||||
mocklab:
|
||||
provider: mocklab
|
||||
client-authentication-method: basic
|
||||
client-authentication-method: client_secret_basic
|
||||
authorization-grant-type: authorization_code
|
||||
scope: profile, email
|
||||
redirect-uri: http://localhost:8080/login/oauth2/code/
|
||||
@ -18,8 +18,8 @@ spring:
|
||||
clientSecret: whatever
|
||||
provider:
|
||||
mocklab:
|
||||
authorization-uri: https://oauth.mocklab.io/oauth/authorize
|
||||
token-uri: https://oauth.mocklab.io/oauth/token
|
||||
user-info-uri: https://oauth.mocklab.io/userinfo
|
||||
authorization-uri: https://oauth.wiremockapi.cloud/oauth/authorize
|
||||
token-uri: https://oauth.wiremockapi.cloud/oauth/token
|
||||
user-info-uri: https://oauth.wiremockapi.cloud/userinfo
|
||||
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
|
Loading…
Reference in New Issue
Block a user