Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSegment ¶
DecodeSegment Decode JWT specific base64url encoding with padding stripped.
func EncodeSegment ¶
EncodeSegment Encode JWT specific base64url encoding with padding stripped.
Types ¶
type MapClaims ¶
type MapClaims map[string]interface{}
MapClaims represents Claims type using the map[string]interface{} for JSON decoding.
type StandardClaims ¶
type StandardClaims struct { Audience string `json:"aud,omitempty"` ExpiresAt int64 `json:"exp,omitempty"` ID string `json:"jti,omitempty"` IssuedAt int64 `json:"iat,omitempty"` Issuer string `json:"iss,omitempty"` NotBefore int64 `json:"nbf,omitempty"` Subject string `json:"sub,omitempty"` }
StandardClaims represents Structured version of JWT Claims Section.
type Token ¶
type Token struct { Raw string // The raw token Header map[string]interface{} // The first segment of the token Claims Claims // The second segment of the token Signature string // The third segment of the token }
Token represents a JWT Token.
func ParseUnverified ¶
ParseUnverified parses the token but doesn't validate the signature.
Click to show internal directories.
Click to hide internal directories.