support client credentials
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"go.infratographer.com/x/echox"
|
||||
"go.infratographer.com/x/events"
|
||||
"go.infratographer.com/x/loggingx"
|
||||
"go.infratographer.com/x/oauth2x"
|
||||
"go.infratographer.com/x/otelx"
|
||||
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/metal"
|
||||
@@ -15,6 +16,7 @@ import (
|
||||
// AppConfig is the main application configuration.
|
||||
var AppConfig struct {
|
||||
Logging loggingx.Config
|
||||
OIDC OIDCClientConfig
|
||||
EquinixMetal metal.Config
|
||||
OTel otelx.Config
|
||||
Server echox.Config
|
||||
@@ -29,3 +31,8 @@ type EventsConfig struct {
|
||||
Publisher events.PublisherConfig
|
||||
Subscriber events.SubscriberConfig
|
||||
}
|
||||
|
||||
// OIDCClientConfig defines the configuration for OIDC Client Credentials.
|
||||
type OIDCClientConfig struct {
|
||||
Client oauth2x.Config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user