From 2139c757ab3e1e58fb376ff137deb81979183420 Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Thu, 14 Dec 2023 07:39:43 -0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sergey Beryozkin --- .../quarkus/oidc/runtime/providers/KnownOidcProviders.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/providers/KnownOidcProviders.java b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/providers/KnownOidcProviders.java index 7e47ed28f8bfe..129262cd29b2b 100644 --- a/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/providers/KnownOidcProviders.java +++ b/extensions/oidc/runtime/src/main/java/io/quarkus/oidc/runtime/providers/KnownOidcProviders.java @@ -27,13 +27,8 @@ public static OidcTenantConfig provider(OidcTenantConfig.Provider provider) { private static OidcTenantConfig linkedIn() { OidcTenantConfig ret = new OidcTenantConfig(); - ret.setAuthServerUrl("https://www.linkedin.com/oauth/v2"); + ret.setAuthServerUrl("https://www.linkedin.com/oauth"); ret.setApplicationType(OidcTenantConfig.ApplicationType.WEB_APP); - ret.setDiscoveryEnabled(false); - ret.setAuthorizationPath("authorization"); - ret.setTokenPath("accessToken"); - ret.setUserInfoPath("https://api.linkedin.com/v2/userinfo"); - ret.setJwksPath("https://www.linkedin.com/oauth/openid/jwks"); ret.getAuthentication().setScopes(List.of("email", "profile")); ret.getCredentials().getClientSecret().setMethod(Method.POST); ret.getToken().setPrincipalClaim("name");