Class GitHubEvents


  • public class GitHubEvents
    extends java.lang.Object
    GitHubEvents - Events for GitHub login. Refs: https://developer.github.com/v3/oauth/
    • Field Detail

      • module

        public static final java.lang.String module
      • SESSION_GITHUB_STATE

        public static final java.lang.String SESSION_GITHUB_STATE
        See Also:
        Constant Field Values
      • envPrefix

        public static final java.lang.String envPrefix
    • Constructor Detail

      • GitHubEvents

        public GitHubEvents()
    • Method Detail

      • gitHubRedirect

        public static java.lang.String gitHubRedirect​(javax.servlet.http.HttpServletRequest request,
                                                      javax.servlet.http.HttpServletResponse response)
        Redirect to GitHub login page.
        Returns:
      • parseGitHubResponse

        public static java.lang.String parseGitHubResponse​(javax.servlet.http.HttpServletRequest request,
                                                           javax.servlet.http.HttpServletResponse response)
        Parse GitHub login response and login the user if possible.
        Returns:
      • getOAuth2GitHubConfig

        public static GenericValue getOAuth2GitHubConfig​(javax.servlet.http.HttpServletRequest request)