diff --git a/src/main/java/org/sadtech/example/swagger/controller/UserController.java b/src/main/java/org/sadtech/example/swagger/controller/UserController.java index 4e0d345..a398da5 100644 --- a/src/main/java/org/sadtech/example/swagger/controller/UserController.java +++ b/src/main/java/org/sadtech/example/swagger/controller/UserController.java @@ -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 = "Получить пользователя") diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index cd6b4bc..0901793 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -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 \ No newline at end of file + jwk-set-uri: https://oauth.wiremockapi.cloud/.well-known/jwks.json \ No newline at end of file