Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClaimExtractor ¶
type ClaimExtractor interface { // GetClaim fetches a named claim and returns the value. GetClaim(claim string) (interface{}, bool, error) // GetClaimInto fetches a named claim and puts the value into the destination. GetClaimInto(claim string, dst interface{}) (bool, error) }
ClaimExtractor is used to extract claim values from an ID Token, or, if not present, from the profile URL.
func NewClaimExtractor ¶
func NewClaimExtractor(idToken string, profileURL *url.URL, profileRequestHeaders http.Header) (ClaimExtractor, error)
NewClaimExtractor constructs a new ClaimExtractor from the raw ID Token. If needed, it will use the profile URL to look up a claim if it isn't present within the ID Token.
Click to show internal directories.
Click to hide internal directories.