From c99b6e7294929c9b7a09726ba747285e8a7cb61e Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Thu, 11 Nov 2021 04:41:49 +0100 Subject: [PATCH] feat(oidc): include introspection_endpoint in .well-known/openid-configuration This adds the OAuth 2.0 introspection endpoint to the OpenID Connect discovery document. https://datatracker.ietf.org/doc/html/draft-ietf-oauth-discovery-10 --- internal/handlers/handler_oidc_wellknown.go | 1 + internal/oidc/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/internal/handlers/handler_oidc_wellknown.go b/internal/handlers/handler_oidc_wellknown.go index 097ad334e..2f42cc675 100644 --- a/internal/handlers/handler_oidc_wellknown.go +++ b/internal/handlers/handler_oidc_wellknown.go @@ -27,6 +27,7 @@ func oidcWellKnown(ctx *middlewares.AutheliaCtx) { TokenEndpoint: fmt.Sprintf("%s%s", issuer, pathOpenIDConnectToken), RevocationEndpoint: fmt.Sprintf("%s%s", issuer, pathOpenIDConnectRevocation), UserinfoEndpoint: fmt.Sprintf("%s%s", issuer, pathOpenIDConnectUserinfo), + IntrospectionEndpoint: fmt.Sprintf("%s%s", issuer, pathOpenIDConnectIntrospection), Algorithms: []string{"RS256"}, UserinfoAlgorithms: []string{"none", "RS256"}, diff --git a/internal/oidc/types.go b/internal/oidc/types.go index a74ba48ac..8fe84f45c 100644 --- a/internal/oidc/types.go +++ b/internal/oidc/types.go @@ -93,6 +93,7 @@ type WellKnownConfiguration struct { TokenEndpoint string `json:"token_endpoint"` RevocationEndpoint string `json:"revocation_endpoint"` UserinfoEndpoint string `json:"userinfo_endpoint"` + IntrospectionEndpoint string `json:"introspection_endpoint"` Algorithms []string `json:"id_token_signing_alg_values_supported"` UserinfoAlgorithms []string `json:"userinfo_signing_alg_values_supported"`