Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(flowReference FlowReference, urlQuery string) (*FlowResponse, error)
- func (c *Client) Get(stateToken string) (*FlowResponse, error)
- func (c *Client) Input(w http.ResponseWriter, r *http.Request, stateToken string, ...) (*FlowResponse, error)
- func (c *Client) OAuthRedirect(url string, redirectUntil string) (finalURL string, err error)
- type FlowAction
- type FlowReference
- type FlowResponse
- type HTTPResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Context context.Context HTTPClient *http.Client OAuthClient *http.Client LocalEndpoint *url.URL HTTPHost httputil.HTTPHost }
func (*Client) Create ¶
func (c *Client) Create(flowReference FlowReference, urlQuery string) (*FlowResponse, error)
Create creates a new authentication flow.
func (*Client) Get ¶
func (c *Client) Get(stateToken string) (*FlowResponse, error)
Get retrieves the flow state.
type FlowAction ¶
type FlowReference ¶
type FlowResponse ¶
type FlowResponse struct { StateToken string `json:"state_token"` Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` Action *FlowAction `json:"action,omitempty"` }
type HTTPResponse ¶
type HTTPResponse struct { Result *FlowResponse `json:"result,omitempty"` Error *apierrors.APIError `json:"error,omitempty"` }
Click to show internal directories.
Click to hide internal directories.