registration

package
v0.59.21 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryRegistrar

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

InMemoryRegistrar implements dynamic client registration using in-memory storage

func NewInMemoryRegistrar

func NewInMemoryRegistrar(logger *logrus.Logger) *InMemoryRegistrar

NewInMemoryRegistrar creates a new in-memory client registrar

func (*InMemoryRegistrar) DeleteClient

func (r *InMemoryRegistrar) DeleteClient(ctx context.Context, clientID string) error

DeleteClient deletes a registered client

func (*InMemoryRegistrar) GetClient

GetClient retrieves a registered client by ID

func (*InMemoryRegistrar) RegisterClient

RegisterClient registers a new OAuth client (RFC7591)

func (*InMemoryRegistrar) ServeRegistration

func (r *InMemoryRegistrar) ServeRegistration(w http.ResponseWriter, req *http.Request)

ServeRegistration handles HTTP requests for client registration

func (*InMemoryRegistrar) UpdateClient

UpdateClient updates an existing client registration

type RegistrarConfig

type RegistrarConfig struct {
	AllowedRedirectSchemes []string      `json:"allowed_redirect_schemes"`
	RequireRedirectURIs    bool          `json:"require_redirect_uris"`
	DefaultGrantTypes      []string      `json:"default_grant_types"`
	DefaultResponseTypes   []string      `json:"default_response_types"`
	DefaultScope           string        `json:"default_scope"`
	ClientSecretTTL        time.Duration `json:"client_secret_ttl"`
	MaxRedirectURIs        int           `json:"max_redirect_uris"`
}

RegistrarConfig contains configuration for the client registrar

Jump to

Keyboard shortcuts

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