Package org.apache.ofbiz.passport.event
Class LinkedInEvents
- java.lang.Object
-
- org.apache.ofbiz.passport.event.LinkedInEvents
-
public class LinkedInEvents extends java.lang.Object
LinkedEvents - Events for LinkedIn login. Refs: https://developer.linkedin.com/documents/authentication
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AuthorizeUri
static java.lang.String
DEFAULT_SCOPE
static java.lang.String
envPrefix
static java.lang.String
module
static java.lang.String
resource
static java.lang.String
SESSION_LINKEDIN_STATE
static java.lang.String
TokenEndpoint
static java.lang.String
TokenServiceUri
static java.lang.String
UserApiUri
-
Constructor Summary
Constructors Constructor Description LinkedInEvents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenericValue
getOAuth2LinkedInConfig(javax.servlet.http.HttpServletRequest request)
static GenericValue
getOAuth2LinkedInConfig(Delegator delegator, java.lang.String productStoreId)
static java.lang.String
linkedInRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Redirect to LinkedIn login page.static java.lang.String
parseLinkedInResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Parse LinkedIn login response and login the user if possible.
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
AuthorizeUri
public static final java.lang.String AuthorizeUri
- See Also:
- Constant Field Values
-
TokenServiceUri
public static final java.lang.String TokenServiceUri
- See Also:
- Constant Field Values
-
UserApiUri
public static final java.lang.String UserApiUri
- See Also:
- Constant Field Values
-
DEFAULT_SCOPE
public static final java.lang.String DEFAULT_SCOPE
- See Also:
- Constant Field Values
-
TokenEndpoint
public static final java.lang.String TokenEndpoint
- See Also:
- Constant Field Values
-
SESSION_LINKEDIN_STATE
public static final java.lang.String SESSION_LINKEDIN_STATE
- See Also:
- Constant Field Values
-
envPrefix
public static final java.lang.String envPrefix
-
-
Method Detail
-
linkedInRedirect
public static java.lang.String linkedInRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Redirect to LinkedIn login page.- Returns:
-
parseLinkedInResponse
public static java.lang.String parseLinkedInResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Parse LinkedIn login response and login the user if possible.- Returns:
-
getOAuth2LinkedInConfig
public static GenericValue getOAuth2LinkedInConfig(javax.servlet.http.HttpServletRequest request)
-
getOAuth2LinkedInConfig
public static GenericValue getOAuth2LinkedInConfig(Delegator delegator, java.lang.String productStoreId) throws GenericEntityException
- Throws:
GenericEntityException
-
-