Class LinkedInV2Client
java.lang.Object
org.forgerock.oauth.clients.oauth2.OAuth2Client<OpenIDConnectClientConfiguration>
org.forgerock.oauth.clients.oidc.OpenIDConnectClient
org.forgerock.oauth.clients.linkedinv2.LinkedInV2Client
- All Implemented Interfaces:
OAuthClient
OpenID Connect Client Implementation that supports LinkedIn.
-
Field Summary
Fields inherited from class org.forgerock.oauth.clients.oidc.OpenIDConnectClient
ACR_VALUES, AUD, CLAIMS, ID_TOKEN, NONCE, REQUEST, REQUEST_URI, SUB
Fields inherited from class org.forgerock.oauth.clients.oauth2.OAuth2Client
ACCEPT_HEADER, ACCESS_TOKEN, addExpireTime, APPLICATION_JSON, AUTHORIZATION_CODE, AUTHORIZATION_HEADER, BASIC_AUTH, BEARER_TOKEN, CLIENT_ID, CLIENT_SECRET, clock, CODE, DATA, EXPIRE_TIME, EXPIRES_IN, GRANT_TYPE, HTTP_GET, HTTP_POST, httpHandler, LANDING_PAGE, PKCE_CODE_CHALLENGE, PKCE_CODE_CHALLENGE_METHOD, PKCE_CODE_VERIFIER, random, REDIRECT_URI, REFRESH_TOKEN, RESPONSE_MODE, RESPONSE_TYPE, SCOPE, STATE, TOKEN, TOKEN_TYPE, TOKEN_TYPE_HINT
-
Constructor Summary
ConstructorsConstructorDescriptionLinkedInV2Client
(Handler httpHandler, LinkedInV2ClientConfiguration config, Clock clock, SecureRandom random, OpenIdResolverService resolverService, OpenIdResolverServiceConfigurator serviceConfigurator) Constructs aLinkedInV2Client
. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
The LinkedIn provider should return as a claim the nonce that we send in the auth request, but it doesn't.Methods inherited from class org.forgerock.oauth.clients.oidc.OpenIDConnectClient
buildQuery, createAuthRedirectUri, createAuthRedirectUri, createAuthRedirectUri, createUserInfoFromIdTokenJwtClaims, getAuthRedirect, getJwtClaimsSet, getNonce, getSessionInfo, getUserInfo, handleNativePostAuth, handlePostAuth, jwtClaimsAsJsonValue, mapToUserInfo, validateSub
Methods inherited from class org.forgerock.oauth.clients.oauth2.OAuth2Client
createAuthorizationState, createAuthRedirectUri, createPkceVerifier, createPostAuthResponse, createPostResponse, createRequestForIntrospectEndpoint, createRequestForTokenEndpoint, createRequestForTokenEndpoint, createRequestForTokenRefresh, createRequestForUserInfoEndpoint, getAccessToken, getAccessTokenInfo, getConfig, getFirstValueOrNull, getTokenEndpointHandler, mapToJsonValue, mapToUserInfo, refresh, storeResponse, throwIfNoClientSecret, validateClientId
-
Constructor Details
-
LinkedInV2Client
public LinkedInV2Client(Handler httpHandler, LinkedInV2ClientConfiguration config, Clock clock, SecureRandom random, OpenIdResolverService resolverService, OpenIdResolverServiceConfigurator serviceConfigurator) Constructs aLinkedInV2Client
.- Parameters:
httpHandler
- The handler used to make HTTP calls to auth and resource servers.config
- Configuration used to drive the OAuth flow.clock
- Clock instance.random
- Used to generate opaque, cryptographically secure strings.resolverService
-OpenIdResolverServiceImpl
. OpenID resolver instance that also contains the JwksStoreCache. By providing the same instance of resolvers for every OpenIdConnectClient the same JwksCache will be used.serviceConfigurator
-OpenIdResolverServiceConfigurator
.
-
-
Method Details
-
createNonce
The LinkedIn provider should return as a claim the nonce that we send in the auth request, but it doesn't. We are thus forced to forgo nonce verification, and the easiest way to do this is not to create a nonce in the first place.- Overrides:
createNonce
in classOpenIDConnectClient
- Returns:
- nonce value.
-