From 0e6e465fc789fafb12c618a1bd37ed616e093792 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 4 Nov 2024 10:36:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20mock=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8?= =?UTF-8?q?=D0=B3=D1=83=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20oauth2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/swagger/controller/UserController.java | 1 + src/main/resources/application.yml | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) 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