new secrets access configuration for publicProxy (#987)

This commit is contained in:
Michael Quigley 2025-06-18 14:25:59 -04:00
parent 332400d34f
commit a993ddabda
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -12,7 +12,7 @@ import (
"golang.org/x/oauth2"
)
const V = 4
const V = 5
type Config struct {
V int
@ -21,6 +21,7 @@ type Config struct {
HostMatch string
Interstitial *InterstitialConfig
Oauth *OauthConfig
SecretsAccess *SecretsAccessConfig
Tls *endpoints.TlsConfig
}
@ -50,6 +51,12 @@ type OauthProviderConfig struct {
SupportsPKCE bool
}
type SecretsAccessConfig struct {
IdentityZId string
IdentityPath string
ServiceName string
}
func (p *OauthProviderConfig) GetEndpoint() oauth2.Endpoint {
return oauth2.Endpoint{
AuthURL: p.AuthURL,