Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeFlowRequest ¶
type AuthCodeFlowRequest struct {
OIDCFlowRequest
RedirectType string `json:"redirect_type"`
}
AuthCodeFlowRequest holds a authorization code flow request
func (*AuthCodeFlowRequest) MarshalJSON ¶
func (r *AuthCodeFlowRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json marshaler interface
func (*AuthCodeFlowRequest) Native ¶
func (r *AuthCodeFlowRequest) Native() bool
Native checks if the request is native
func (*AuthCodeFlowRequest) UnmarshalJSON ¶
func (r *AuthCodeFlowRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json unmarshaler interface
type ExchangeTransferCodeRequest ¶
type ExchangeTransferCodeRequest struct {
api.ExchangeTransferCodeRequest `json:",inline"`
GrantType model.GrantType `json:"grant_type"`
}
ExchangeTransferCodeRequest is a request to exchange a transfer code for the mytoken
type MytokenFromMytokenRequest ¶
type MytokenFromMytokenRequest struct {
api.MytokenFromMytokenRequest `json:",inline"`
GrantType model.GrantType `json:"grant_type"`
Mytoken token.Token `json:"mytoken"`
Restrictions restrictions.Restrictions `json:"restrictions"`
ResponseType model.ResponseType `json:"response_type"`
}
MytokenFromMytokenRequest is a request to create a new Mytoken from an existing Mytoken
func NewMytokenRequest ¶
func NewMytokenRequest() *MytokenFromMytokenRequest
NewMytokenRequest creates a MytokenFromMytokenRequest with the default values where they can be omitted
func (*MytokenFromMytokenRequest) UnmarshalJSON ¶
func (r *MytokenFromMytokenRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json unmarshaler interface
type MytokenResponse ¶
type MytokenResponse struct {
api.MytokenResponse `json:",inline"`
MytokenType model.ResponseType `json:"mytoken_type"`
Restrictions restrictions.Restrictions `json:"restrictions,omitempty"`
}
MytokenResponse is a response to a mytoken request
type OIDCFlowRequest ¶
type OIDCFlowRequest struct {
api.OIDCFlowRequest `json:",inline"`
GrantType model.GrantType `json:"grant_type"`
OIDCFlow model.OIDCFlow `json:"oidc_flow"`
Restrictions restrictions.Restrictions `json:"restrictions"`
ResponseType model.ResponseType `json:"response_type"`
// contains filtered or unexported fields
}
OIDCFlowRequest holds the request for an OIDC Flow request
func NewOIDCFlowRequest ¶
func NewOIDCFlowRequest() *OIDCFlowRequest
NewOIDCFlowRequest creates a new OIDCFlowRequest with default values where they can be omitted
func (OIDCFlowRequest) MarshalJSON ¶
func (r OIDCFlowRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface
func (*OIDCFlowRequest) Scan ¶
func (r *OIDCFlowRequest) Scan(src interface{}) error
Scan implements the sql.Scanner interface
func (OIDCFlowRequest) ToAuthCodeFlowRequest ¶
func (r OIDCFlowRequest) ToAuthCodeFlowRequest() AuthCodeFlowRequest
func (*OIDCFlowRequest) UnmarshalJSON ¶
func (r *OIDCFlowRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler interface
type PollingCodeRequest ¶
type PollingCodeRequest struct {
api.PollingCodeRequest `json:",inline"`
GrantType model.GrantType `json:"grant_type"`
}
PollingCodeRequest is a polling code request
type TransferCodeResponse ¶
type TransferCodeResponse struct {
api.TransferCodeResponse `json:",inline"`
MytokenType model.ResponseType `json:"mytoken_type"`
}
TransferCodeResponse is the response to a transfer code request