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.
Click to show internal directories.
Click to hide internal directories.