Обновление mock конфигурации для oauth2
This commit is contained in:
parent
e91208a7d0
commit
0e6e465fc7
@ -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 = "Получить пользователя")
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user