Documentation
¶
Index ¶
- type AuthCodeOption
- type Client
- func (c *Client) AuthCodeURL(_ context.Context, cfg oauth2.Config, state string, opts ...AuthCodeOption) string
- func (c *Client) AuthCodeURLWithPAR(ctx context.Context, cfg oauth2.Config, parEndpoint string, state string, ...) (string, error)
- func (c *Client) Exchange(ctx context.Context, cfg oauth2.Config, code string, client *http.Client, ...) (*oauth2.Token, error)
- func (c *Client) GeneratePKCE() (string, string, string, error)
- func (c *Client) GeneratePKCEFromBytes(b []byte) (string, string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthCodeOption ¶
type AuthCodeOption interface {
// contains filtered or unexported methods
}
func SetAuthURLParam ¶
func SetAuthURLParam(key, value string) AuthCodeOption
type Client ¶
type Client struct {
}
func NewOAuth2Client ¶
func NewOAuth2Client() *Client
func (*Client) AuthCodeURL ¶
func (*Client) AuthCodeURLWithPAR ¶
Click to show internal directories.
Click to hide internal directories.