Lines Matching defs:jwt
5 // Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly
8 // See: https://tools.ietf.org/html/draft-ietf-oauth-jwt-bearer-12
9 package jwt
28 defaultGrantType = "urn:ietf:params:oauth:grant-type:jwt-bearer"
29 defaultHeader = &jws.Header{Algorithm: "RS256", Typ: "JWT"}
32 // Config is the configuration for using JWT to fetch tokens,
41 // private key is used to sign JWT payloads.
59 // TokenURL is the endpoint required to complete the 2-legged JWT flow.
66 // TokenSource returns a JWT TokenSource using the configuration
81 // jwtSource is a source that always does a signed JWT request for a token.
154 return nil, fmt.Errorf("oauth2: error decoding JWT token: %v", err)