Class GitHubProfileDefinition


  • public class GitHubProfileDefinition
    extends OAuthProfileDefinition
    This class is the GitHub profile definition.
    Since:
    1.1.0
    Author:
    Jerome Leleu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AVATAR_URL  
      static java.lang.String BIO  
      static java.lang.String BLOG  
      static java.lang.String COLLABORATORS  
      static java.lang.String COMPANY  
      static java.lang.String CREATED_AT  
      static java.lang.String DISK_USAGE  
      static java.lang.String FOLLOWERS  
      static java.lang.String FOLLOWING  
      static java.lang.String GRAVATAR_ID  
      static java.lang.String HIREABLE  
      static java.lang.String HTML_URL  
      static java.lang.String LOGIN  
      static java.lang.String NAME  
      static java.lang.String OWNED_PRIVATE_REPOS  
      static java.lang.String PLAN  
      static java.lang.String PRIVATE_GISTS  
      static java.lang.String PUBLIC_GISTS  
      static java.lang.String PUBLIC_REPOS  
      static java.lang.String TOTAL_PRIVATE_REPOS  
      static java.lang.String TYPE  
      static java.lang.String UPDATED_AT  
      static java.lang.String URL  
      • Fields inherited from class org.pac4j.core.profile.definition.CommonProfileDefinition

        DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
      • Fields inherited from class org.pac4j.core.profile.definition.ProfileDefinition

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      GitHubProfile extractUserProfile​(java.lang.String body)
      Extract the user profile from the response (JSON, XML...) of the profile url.
      java.lang.String getProfileUrl​(com.github.scribejava.core.model.Token accessToken, OAuthConfiguration configuration)
      Retrieve the url of the profile of the authenticated user for the provider.
      • Methods inherited from class org.pac4j.core.profile.definition.CommonProfileDefinition

        configurePrimaryAttributes
      • Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinition

        convertAndAdd, convertAndAdd, getConverters, getParameter, getPrimaryAttributes, getProfileId, getSecondaryAttributes, isRestoreProfileFromTypedId, newProfile, primary, secondary, setProfileFactory, setProfileId, setRestoreProfileFromTypedId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait