import "code.pfad.fr/gopenidclient/common"
package common gather methods used by the provider implementation
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(ctx context.Context, code, verifier string, httpClient *http.Client, config *oauth2.Config, clientAssertion gopenidclient.Assertion) (*oauth2.Token, error)
func RefreshHelper(ctx context.Context, refreshToken string, httpClient *http.Client, config *oauth2.Config, clientAssertion gopenidclient.Assertion) (*oauth2.Token, error)
Path | Synopsis |
---|---|
tester | package tester should be used to test the different providers |