mirror of
https://github.com/openziti/zrok.git
synced 2025-06-26 12:42:18 +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"
|
"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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user