Versions in this module Expand all Collapse all v0 v0.1.0 Oct 11, 2026 Changes in this version + func Challenge(verifier string) string + func IsInvalidGrant(err error) bool + func Loopback(ctx context.Context, p *Provider, cfg Config, open func(string) error, ...) (*Client, *Token, *oidc.Token, error) + func OpenBrowser(u string) error + type Client struct + func NewClient(ctx context.Context, p *Provider, cfg Config) (*Client, error) + func (c *Client) AuthCodeURL(f Flow, extra url.Values) string + func (c *Client) EndSessionURL(postLogout string) string + func (c *Client) Exchange(ctx context.Context, code string, f Flow) (*Token, *oidc.Token, error) + func (c *Client) Provider() *Provider + func (c *Client) Refresh(ctx context.Context, refreshToken string, f For) (*Token, error) + func (c *Client) VerifyID(ctx context.Context, raw, nonce string) (*oidc.Token, error) + type Config struct + ClientID string + RedirectURI string + Scopes []string + Secret string + type Error struct + Code string + Description string + func (e *Error) Error() string + type Flow struct + Nonce string + State string + Verifier string + func NewFlow() Flow + type For struct + Resource string + Scope string + type Provider struct + AuthURL string + EndSessionURL string + Issuer string + TokenURL string + func Discover(ctx context.Context, hc *http.Client, issuer string) (*Provider, error) + type Token struct + AccessToken string + Expiry time.Time + IDToken string + RefreshToken string