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 CreateTransferCodeRequest ¶ added in v0.3.0
type CreateTransferCodeRequest struct { api.CreateTransferCodeRequest `json:",inline"` Mytoken universalmytoken.UniversalMytoken `json:"mytoken"` }
CreateTransferCodeRequest is a request to create a new transfer code from an existing mytoken
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
func NewExchangeTransferCodeRequest ¶ added in v0.3.0
func NewExchangeTransferCodeRequest() ExchangeTransferCodeRequest
NewExchangeTransferCodeRequest returns a new ExchangeTransferCodeRequest
type MytokenFromMytokenRequest ¶
type MytokenFromMytokenRequest struct { api.MytokenFromMytokenRequest `json:",inline"` GrantType model.GrantType `json:"grant_type"` Mytoken universalmytoken.UniversalMytoken `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"` TokenUpdate *MytokenResponse `json:"token_update,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
ToAuthCodeFlowRequest creates a AuthCodeFlowRequest from the OIDCFlowRequest
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
func NewPollingCodeRequest ¶ added in v0.3.0
func NewPollingCodeRequest() PollingCodeRequest
NewPollingCodeRequest returns a new PollingCodeRequest
type TransferCodeResponse ¶
type TransferCodeResponse struct { api.TransferCodeResponse `json:",inline"` MytokenType model.ResponseType `json:"mytoken_type"` }
TransferCodeResponse is the response to a transfer code request