outposts/proxy: fix panic due to IsSet misbehaving
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
64af78110a
commit
43854dc828
|
@ -77,9 +77,8 @@ func NewApplication(p api.ProxyOutpostConfig, c *http.Client, cs *ak.CryptoStore
|
||||||
}.Encode()
|
}.Encode()
|
||||||
|
|
||||||
managed := false
|
managed := false
|
||||||
if ak.Outpost.Managed.IsSet() {
|
if m := ak.Outpost.Managed.Get(); m != nil {
|
||||||
m := *ak.Outpost.Managed.Get()
|
managed = *m == "goauthentik.io/outposts/embedded"
|
||||||
managed = m == "goauthentik.io/outposts/embedded"
|
|
||||||
}
|
}
|
||||||
// Configure an OpenID Connect aware OAuth2 client.
|
// Configure an OpenID Connect aware OAuth2 client.
|
||||||
endpoint := GetOIDCEndpoint(
|
endpoint := GetOIDCEndpoint(
|
||||||
|
|
Reference in New Issue