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" "golang.org/x/oauth2"
) )
const V = 4 const V = 5
type Config struct { type Config struct {
V int V int
@ -21,6 +21,7 @@ type Config struct {
HostMatch string HostMatch string
Interstitial *InterstitialConfig Interstitial *InterstitialConfig
Oauth *OauthConfig Oauth *OauthConfig
SecretsAccess *SecretsAccessConfig
Tls *endpoints.TlsConfig Tls *endpoints.TlsConfig
} }
@ -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,