browserflow

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const OAuthResumePath = "/oauth/authorize/resume"

OAuthResumePath is the only non-root return target a login may carry: the MCP authorization server's continuation after sign-in.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	AuthorizationURL(state, nonce, verifier string) string
	Exchange(context.Context, string, string, string) (authn.Identity, error)
}

type Provider

type Provider struct {
	Spec     Spec
	Client   Client
	Store    authn.SessionStore
	Sessions *authn.SessionManager
	LoginTTL time.Duration
	Now      func() time.Time
	Rand     io.Reader
	Audit    audit.Recorder
	// Tokens, when set, is handed the provider token of logins that return to
	// the MCP authorization endpoint. Ordinary console logins never share it.
	Tokens ProviderTokenSink
}

func (*Provider) Metadata

func (provider *Provider) Metadata() sso.Metadata

func (*Provider) Register

func (provider *Provider) Register(mux *http.ServeMux)

type ProviderTokenSink

type ProviderTokenSink interface {
	Deposit(ctx context.Context, requestHash [32]byte, subject, providerToken string)
}

ProviderTokenSink receives the identity provider token for one pending MCP authorization, bound to the authenticated GraphNest subject.

type Spec

type Spec struct {
	Metadata                                                            sso.Metadata
	LoginPath, CallbackPath, FlowProvider, IdentityProvider, CookieName string
	Method, SuccessOperation, DeniedOperation                           string
}

Jump to

Keyboard shortcuts

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