Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Type string `json:"typ"` Algorithm string `json:"alg"` KeyID string `json:"kid"` }
Header is struct for decoded ID Token Header.
type IDToken ¶
type IDToken struct {
// contains filtered or unexported fields
}
IDToken is struct for ID Token.
func NewIDToken ¶
func NewIDToken(oIDCConfig oidcconfig.Response, rawIDToken string) (*IDToken, error)
NewIDToken is IDToken constructor function.
func (*IDToken) GetIDTokenHeader ¶
GetIDTokenHeader is method to getter of Header struct.
func (*IDToken) GetIDTokenPayload ¶
GetIDTokenPayload is method to getter of Payload struct.
func (*IDToken) VerifyIDTokenHeader ¶
VerifyIDTokenHeader is method to verify ID Token Header.
func (*IDToken) VerifyPayloadClaims ¶
VerifyPayloadClaims is method to verify claims included ID Token payload.
type Option ¶
Option is functional option for VerifyPayload function initialization.
func AccessTokenAccessTokenHash ¶
AccessTokenAccessTokenHash is functional option to add expected access token of access token hash.
func DurationIssuedAt ¶
DurationIssuedAt is functional option to add expected duration of issued at.
type Payload ¶
type Payload struct { Issuer string `json:"iss"` Subject string `json:"sub"` Audience []string RawAudience json.RawMessage `json:"aud"` Expiration int `json:"exp"` IssuedAt int `json:"iat"` AuthTime int `json:"auth_time"` Nonce string `json:"nonce"` AuthenticationMethodReference []string `json:"amr"` AccessTokenHash string `json:"at_hash"` AuthenticationContextReference string `json:"acr"` }
Payload is struct for decoded ID Token Payload.