Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OIDCErrorResponse ¶
type OIDCErrorResponse struct { Error string `json:"error"` ErrorDescription string `json:"error_description,omitempty"` Status int `json:"-"` }
OIDCErrorResponse is the error response of an oidc provider
type OIDCTokenResponse ¶
type OIDCTokenResponse struct { AccessToken string `json:"access_token"` TokenType string `json:"token_type"` ExpiresIn int64 `json:"expires_in"` RefreshToken string `json:"refresh_token"` Scopes string `json:"scope"` }
OIDCTokenResponse is the token response of an oidc provider
type RefreshRequest ¶
type RefreshRequest struct { GrantType string `json:"grant_type"` RefreshToken string `json:"refresh_token"` Scopes string `json:"scope,omitempty"` Audiences string `json:"resource,omitempty"` // The "resource" key will be replaced with the string in resourceParameter // contains filtered or unexported fields }
RefreshRequest is the oidc request for an refresh flow
func NewRefreshRequest ¶
func NewRefreshRequest(rt string, conf *config.ProviderConf) *RefreshRequest
NewRefreshRequest creates a new RefreshRequest for a given refresh token
func (*RefreshRequest) MarshalJSON ¶ added in v0.2.0
func (r *RefreshRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface
func (*RefreshRequest) ToFormData ¶
func (r *RefreshRequest) ToFormData() map[string]string
ToFormData formats the RefreshRequest as a string map
type RevokeRequest ¶
RevokeRequest is a oidc request for revoking tokens
func NewRTRevokeRequest ¶
func NewRTRevokeRequest(rt string) *RevokeRequest
NewRTRevokeRequest creates a new RevokeRequest for revoking the passed refresh token
func (*RevokeRequest) ToFormData ¶
func (r *RevokeRequest) ToFormData() map[string]string
ToFormData formats the RevokeRequest as a string map
Click to show internal directories.
Click to hide internal directories.