mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 04:31:30 +02:00
new secrets access configuration for publicProxy (#987)
This commit is contained in:
parent
332400d34f
commit
a993ddabda
@ -12,16 +12,17 @@ import (
|
||||
"golang.org/x/oauth2"
|
||||
)
|
||||
|
||||
const V = 4
|
||||
const V = 5
|
||||
|
||||
type Config struct {
|
||||
V int
|
||||
Identity string
|
||||
Address string
|
||||
HostMatch string
|
||||
Interstitial *InterstitialConfig
|
||||
Oauth *OauthConfig
|
||||
Tls *endpoints.TlsConfig
|
||||
V int
|
||||
Identity string
|
||||
Address string
|
||||
HostMatch string
|
||||
Interstitial *InterstitialConfig
|
||||
Oauth *OauthConfig
|
||||
SecretsAccess *SecretsAccessConfig
|
||||
Tls *endpoints.TlsConfig
|
||||
}
|
||||
|
||||
type InterstitialConfig struct {
|
||||
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user