Documentation ¶
Index ¶
- type AuthCodeFlowRequest
- type CreateTransferCodeRequest
- type ExchangeTransferCodeRequest
- type MytokenFromMytokenRequest
- type MytokenResponse
- type OIDCFlowRequest
- func (r OIDCFlowRequest) MarshalJSON() ([]byte, error)
- func (r *OIDCFlowRequest) Scan(src interface{}) error
- func (r *OIDCFlowRequest) SetRedirectType(redirect string)
- func (r *OIDCFlowRequest) SetRedirectURI(uri string)
- func (r OIDCFlowRequest) ToAuthCodeFlowRequest() AuthCodeFlowRequest
- func (r *OIDCFlowRequest) UnmarshalJSON(data []byte) error
- func (r OIDCFlowRequest) Value() (driver.Value, error)
- type PollingCodeRequest
- type TokenUpdatableResponse
- type TransferCodeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeFlowRequest ¶
type AuthCodeFlowRequest struct { OIDCFlowRequest ClientType string `json:"client_type"` RedirectURI string `json:"redirect_uri"` }
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) Scan ¶ added in v0.4.0
func (r *AuthCodeFlowRequest) Scan(src interface{}) error
Scan implements the sql.Scanner interface
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) SetRedirectType ¶ added in v0.4.0
func (r *OIDCFlowRequest) SetRedirectType(redirect string)
SetRedirectType sets the (hidden) redirect type
func (*OIDCFlowRequest) SetRedirectURI ¶ added in v0.5.0
func (r *OIDCFlowRequest) SetRedirectURI(uri string)
SetRedirectURI sets the (hidden) redirect uri
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 TokenUpdatableResponse ¶ added in v0.4.0
type TokenUpdatableResponse interface {
SetTokenUpdate(response *MytokenResponse)
}
TokenUpdatableResponse is an interface for responses that can have a MytokenResponse as an token update (after token rotation)
type TransferCodeResponse ¶
type TransferCodeResponse struct { api.TransferCodeResponse `json:",inline"` MytokenType model.ResponseType `json:"mytoken_type"` }
TransferCodeResponse is the response to a transfer code request