Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the details for a OIDC client
func (*Client) AuthWithDeviceFlow ¶
func (c *Client) AuthWithDeviceFlow(ctx context.Context, loginTimeout time.Duration) (*oauth2.Token, error)
AuthWithDeviceFlow attempts to authorise using the device code oAuth flow.
func (*Client) AuthWithOIDCCallback ¶
func (c *Client) AuthWithOIDCCallback(ctx context.Context, loginTimeout time.Duration, disableBrowserPopup bool) (*oauth2.Token, error)
AuthWithOIDCCallback attempts to authorise using a local callback
func (*Client) Authenticated ¶
Authenticated returns a true or false value if a given OIDC client has received a successful login
type DeviceFlowAuth ¶
type DeviceFlowAuth struct { UserCode string `json:"user_code" yaml:"user-code"` DeviceCode string `json:"device_code"` VerificationURI string `json:"verification_uri,verification_url"` Message string `json:"message"` ExpiresIn int `json:"expires_in,omitempty"` Interval int `json:"interval,omitempty"` }
DeviceFlowAuth contains the response for a device code oAuth flow.
Click to show internal directories.
Click to hide internal directories.