oauth2clients

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 21 Imported by: 0

Documentation

Overview

Package oauth2clients provides a series of HTTP handlers for managing service OAuth2 clients.

Index

Constants

View Source
const (
	// OAuth2ClientIDURIParamKey is used for referring to OAuth2 client IDs in router params.
	OAuth2ClientIDURIParamKey = "oauth2ClientID"
)

Variables

View Source
var (
	// Providers are what we provide for dependency injection.
	Providers = wire.NewSet(
		ProvideConfig,
		ProvideOAuth2ClientsService,
	)
)

Functions

func ProvideOAuth2ClientsService

func ProvideOAuth2ClientsService(
	logger logging.Logger,
	clientDataManager types.OAuth2ClientDataManager,
	userDataManager types.UserDataManager,
	authenticator authentication.Authenticator,
	encoderDecoder encoding.ServerEncoderDecoder,
	routeParamManager routing.RouteParamManager,
	cfg *Config,
	tracerProvider tracing.TracerProvider,
	secretGenerator random.Generator,
	publisherProvider messagequeue.PublisherProvider,
) (types.OAuth2ClientDataService, error)

ProvideOAuth2ClientsService builds a new OAuth2ClientsService.

Types

type Config

type Config struct {
	DataChangesTopicName string `json:"dataChangesTopicName,omitempty" toml:"data_changes_topic_name,omitempty"`
	CreationEnabled      bool   `json:"creationEnabled"                toml:"creation_enabled"`
}

Config manages our body validation.

func ProvideConfig

func ProvideConfig(cfg *authservice.Config) *Config

ProvideConfig converts an auth Config to a local Config.

func (*Config) ValidateWithContext

func (c *Config) ValidateWithContext(ctx context.Context) error

Jump to

Keyboard shortcuts

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