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