outposts/proxy: fix proxy's TokenIntrospection potentially not being set

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-14 20:54:34 +01:00
parent 143309448e
commit 829e49275d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,7 @@ func GetOIDCEndpoint(p api.ProxyOutpostConfig, authentikHost string) OIDCEndpoin
}, },
EndSessionEndpoint: endUrl, EndSessionEndpoint: endUrl,
JwksUri: jwksUrl, JwksUri: jwksUrl,
TokenIntrospection: p.OidcConfiguration.IntrospectionEndpoint,
} }
authU, err := url.Parse(authUrl) authU, err := url.Parse(authUrl)
if err != nil { if err != nil {
@ -68,6 +69,5 @@ func GetOIDCEndpoint(p api.ProxyOutpostConfig, authentikHost string) OIDCEndpoin
ep.AuthURL = authU.String() ep.AuthURL = authU.String()
ep.EndSessionEndpoint = endU.String() ep.EndSessionEndpoint = endU.String()
ep.JwksUri = jwksU.String() ep.JwksUri = jwksU.String()
ep.TokenIntrospection = p.OidcConfiguration.IntrospectionEndpoint
return ep return ep
} }