Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Audience ¶
type Audience []string
Audience represents the audiences.
func (Audience) MarshalJSON ¶
MarshalJSON implemented by types that can marshal themselves into valid JSON.
func (*Audience) UnmarshalJSON ¶
UnmarshalJSON implemented by types that can unmarshal a JSON description of themselves.
type FederatedIDClaims ¶
type FederatedIDClaims struct { // 租户ID ConnectorID string `json:"connector_id,omitempty"` // 用户ID UserID string `json:"user_id,omitempty"` }
FederatedIDClaims represents the extension struct of claims.
type IDTokenClaims ¶
type IDTokenClaims struct { Issuer string `json:"iss"` Subject string `json:"sub"` Audience Audience `json:"aud"` Expiry int64 `json:"exp"` IssuedAt int64 `json:"iat"` AuthorizingParty string `json:"azp,omitempty"` Nonce string `json:"nonce,omitempty"` AccessTokenHash string `json:"at_hash,omitempty"` Groups []string `json:"groups,omitempty"` Name string `json:"name,omitempty"` FederatedIDClaims *FederatedIDClaims `json:"federated_claims,omitempty"` }
IDTokenClaims is an OpenID Connect extension that provides a predictable representation of an authorization event.
Click to show internal directories.
Click to hide internal directories.