Package org.apache.ofbiz.passport.event
Class GitHubEvents
java.lang.Object
org.apache.ofbiz.passport.event.GitHubEvents
GitHubEvents - Events for GitHub login.
Refs: https://developer.github.com/v3/oauth/
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static GenericValue
getOAuth2GitHubConfig
(HttpServletRequest request) static GenericValue
getOAuth2GitHubConfig
(Delegator delegator, String productStoreId) static String
static String
gitHubRedirect
(HttpServletRequest request, HttpServletResponse response) Redirect to GitHub login page.static String
parseGitHubResponse
(HttpServletRequest request, HttpServletResponse response) Parse GitHub login response and login the user if possible.
-
Field Details
-
ENV_PREFIX
-
-
Constructor Details
-
GitHubEvents
public GitHubEvents()
-
-
Method Details
-
getApiEndPoint
-
getUserApiUri
-
gitHubRedirect
Redirect to GitHub login page.- Returns:
- string "success" or "error"
-
parseGitHubResponse
Parse GitHub login response and login the user if possible.- Returns:
- string "success" or "error"
-
getOAuth2GitHubConfig
-
getOAuth2GitHubConfig
public static GenericValue getOAuth2GitHubConfig(Delegator delegator, String productStoreId) throws GenericEntityException - Throws:
GenericEntityException
-