Versions in this module Expand all Collapse all v0 v0.1.1 Nov 12, 2026 v0.1.0 Oct 14, 2026 Changes in this version + const DefaultExchangeTimeout + const DefaultMaxAge + const PluginName + const RelayErrorInvalidCode + const SkipHeader + const StateMaxAge + const WarnPassProfile + var ErrInvalidCode = auth.NewError("oauthproxy.invalid_code", http.StatusBadRequest, ...) + var ErrInvalidState = auth.NewError("oauthproxy.invalid_state", http.StatusBadRequest, ...) + var ErrMissingProfile = errors.New("oauthproxy: missing_profile: the relayed callback carries no profile") + var ErrNoProductionURL = errors.New("oauthproxy: ProductionURL is required and must be an absolute http(s) URL") + var ErrNoSecret = errors.New(...) + var ErrNotWrapped = errors.New("oauthproxy: wrap at least one oauth provider with Plugin.Wrap") + func DeploymentURL(getenv func(string) string, fallback string) string + type Option func(*Plugin) + func HTTPClient(hc *http.Client) Option + func MaxAge(d time.Duration) Option + func PassProfile() Option + func ProductionCallback(fn func(previewCallback string) string) Option + func ProductionURL(u string) Option + func WithSecret(current []byte, previous ...[]byte) Option + type Plugin struct + func New(opts ...Option) *Plugin + func (p *Plugin) Init(a *auth.Auth) error + func (p *Plugin) IsProduction(callback string) bool + func (p *Plugin) Name() string + func (p *Plugin) OperationHooks() []auth.OperationHook + func (p *Plugin) OptionErr() error + func (p *Plugin) Requires() []string + func (p *Plugin) Validate(c *auth.Config) error + func (p *Plugin) Wrap(prov oauth.Provider) *Proxied + type Proxied struct + func (x *Proxied) ApplyPosted(raw string, prof *oauth.Profile) + func (x *Proxied) AuthCodeURL(state, challenge, redirectURI string) string + func (x *Proxied) AuthCodeURLForRequest(ctx context.Context, state, challenge, redirectURI string, ...) string + func (x *Proxied) AuthCodeURLWithParams(state, challenge, redirectURI string, rp oauth.RequestParams) string + func (x *Proxied) Discover(ctx context.Context, hc *http.Client) error + func (x *Proxied) EndSession(ctx context.Context, hc *http.Client) (string, error) + func (x *Proxied) Exchange(ctx context.Context, hc *http.Client, code, verifier, redirectURI string) (oauth.Profile, error) + func (x *Proxied) ExpectedIssuer() string + func (x *Proxied) FetchProfileWith(ctx context.Context, hc *http.Client, ts oauth.TokenSet) (oauth.Profile, error) + func (x *Proxied) Label() string + func (x *Proxied) Load(ctx context.Context, hc *http.Client) error + func (x *Proxied) Name() string + func (x *Proxied) OptionalScopeList() []string + func (x *Proxied) PostsBack() bool + func (x *Proxied) Refresh(ctx context.Context, hc *http.Client, rt auth.Token) (oauth.TokenSet, error) + func (x *Proxied) Revoke(ctx context.Context, hc *http.Client, ts oauth.TokenSet) error + func (x *Proxied) Unwrap() oauth.Provider