Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sergey Beryozkin <[email protected]>
  • Loading branch information
gastaldi and sberyozkin authored Dec 14, 2023
1 parent fd69e08 commit 2139c75
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 2139c75

Please sign in to comment.