oidcfed

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const EnvAllowPrivateIDP = "FED_ALLOW_PRIVATE_IDP"

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (*Provider) AuthURL

func (p *Provider) AuthURL(state, redirectURI, verifier string) string

func (*Provider) Exchange

func (p *Provider) Exchange(ctx context.Context, code, redirectURI, verifier string) (app.OAuthIdentity, error)

func (*Provider) Name

func (p *Provider) Name() string

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver() *Resolver

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, issuerURL, clientID, clientSecret, scopes string) (app.FedOIDCProvider, error)

func (*Resolver) WithHTTPClient

func (r *Resolver) WithHTTPClient(hc *http.Client) *Resolver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL