Documentation
¶
Overview ¶
package common gather methods used by the provider implementation
Index ¶
- func AuthCodeURLWithPKCE(authCodeURL func(state string, opts ...oauth2.AuthCodeOption) string, ...) (url, pkceVerifier string, err error)
- func ExchangeHelper(ctx context.Context, code, verifier string, httpClient *http.Client, ...) (*oauth2.Token, error)
- func RefreshHelper(ctx context.Context, refreshToken string, httpClient *http.Client, ...) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthCodeURLWithPKCE ¶
func AuthCodeURLWithPKCE(authCodeURL func(state string, opts ...oauth2.AuthCodeOption) string, state string) (url, pkceVerifier string, err error)
AuthCodeURLWithPKCE is a helper method to generate PKCE codes and send the challenge to the provider (and returning the verifier for later user).
func ExchangeHelper ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.