Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeFlowRequest ¶
type AuthCodeFlowRequest struct {
Issuer string `json:"oidc_issuer"`
GrantType model.GrantType `json:"grant_type"`
OIDCFlow model.OIDCFlow `json:"oidc_flow"`
Restrictions restrictions.Restrictions `json:"restrictions"`
Capabilities capabilities.Capabilities `json:"capabilities"`
SubtokenCapabilities capabilities.Capabilities `json:"subtoken_capabilities"`
RedirectType string `json:"redirect_type"`
Name string `json:"name"`
ResponseType model.ResponseType `json:"response_type"`
}
AuthCodeFlowRequest holds a authorization code flow request
func NewAuthCodeFlowRequest ¶
func NewAuthCodeFlowRequest() *AuthCodeFlowRequest
NewAuthCodeFlowRequest creates a new AuthCodeFlowRequest with default values where they can be omitted
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 AuthCodeFlowResponse ¶
type AuthCodeFlowResponse struct {
AuthorizationURL string `json:"authorization_url"`
PollingInfo
}
AuthCodeFlowResponse is the response to an authorization code flow request
type CreateTransferCodeRequest ¶
type CreateTransferCodeRequest struct {
SuperToken string `json:"super_token"` // we use string and not token.Token because the token can also be in the Auth Header and there it is a string
}
CreateTransferCodeRequest is a request to create a new transfer code from an existing super token
type ExchangeTransferCodeRequest ¶
type ExchangeTransferCodeRequest struct {
GrantType model.GrantType `json:"grant_type"`
TransferCode string `json:"transfer_code"`
}
ExchangeTransferCodeRequest is a request to exchange a transfer code for the super token
type PollingCodeRequest ¶
type PollingCodeRequest struct {
GrantType model.GrantType `json:"grant_type"`
PollingCode string `json:"polling_code"`
}
PollingCodeRequest is a polling code request
type PollingInfo ¶
type PollingInfo struct {
PollingCode string `json:"polling_code,omitempty"`
PollingCodeExpiresIn int64 `json:"polling_code_expires_in,omitempty"`
PollingInterval int64 `json:"polling_interval,omitempty"`
}
PollingInfo holds all response information about polling codes
type SuperTokenFromSuperTokenRequest ¶
type SuperTokenFromSuperTokenRequest struct {
Issuer string `json:"oidc_issuer"`
GrantType model.GrantType `json:"grant_type"`
SuperToken token.Token `json:"super_token"`
Restrictions restrictions.Restrictions `json:"restrictions"`
Capabilities capabilities.Capabilities `json:"capabilities"`
SubtokenCapabilities capabilities.Capabilities `json:"subtoken_capabilities"`
Name string `json:"name"`
ResponseType model.ResponseType `json:"response_type"`
}
SuperTokenFromSuperTokenRequest is a request to create a new supertoken from an existing supertoken
func NewSuperTokenRequest ¶
func NewSuperTokenRequest() *SuperTokenFromSuperTokenRequest
NewSuperTokenRequest creates a SuperTokenFromSuperTokenRequest with the default values where they can be omitted
func (*SuperTokenFromSuperTokenRequest) UnmarshalJSON ¶
func (r *SuperTokenFromSuperTokenRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json unmarshaler interface
type SuperTokenResponse ¶
type SuperTokenResponse struct {
SuperToken string `json:"super_token,omitempty"`
SuperTokenType model.ResponseType `json:"super_token_type"`
TransferCode string `json:"transfer_code,omitempty"`
ExpiresIn uint64 `json:"expires_in,omitempty"`
Restrictions restrictions.Restrictions `json:"restrictions,omitempty"`
Capabilities capabilities.Capabilities `json:"capabilities,omitempty"`
SubtokenCapabilities capabilities.Capabilities `json:"subtoken_capabilities,omitempty"`
}
SuperTokenResponse is a response to a super token request
type TransferCodeResponse ¶
type TransferCodeResponse struct {
SuperTokenType model.ResponseType `json:"super_token_type"`
TransferCode string `json:"transfer_code"`
ExpiresIn uint64 `json:"expires_in"`
}
TransferCodeResponse is the response to a transfer code request