From 1cf627c3f582557e19af68992c6a119833c32e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Tue, 14 Nov 2023 14:31:58 +0200 Subject: [PATCH] legacy introspection flag --- cmd/defaults.yaml | 3 ++- internal/api/oidc/introspect.go | 2 +- internal/api/oidc/op.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/defaults.yaml b/cmd/defaults.yaml index e26313cfe55..8d072cc3673 100644 --- a/cmd/defaults.yaml +++ b/cmd/defaults.yaml @@ -315,7 +315,8 @@ OIDC: DefaultLoginURLV2: "/login?authRequest=" # ZITADEL_OIDC_DEFAULTLOGINURLV2 DefaultLogoutURLV2: "/logout?post_logout_redirect=" # ZITADEL_OIDC_DEFAULTLOGOUTURLV2 Features: - ExperimentalIntrospection: true + # Allows fallback to the Legacy Introspection implementation + LegacyIntrospection: false SAML: ProviderConfig: diff --git a/internal/api/oidc/introspect.go b/internal/api/oidc/introspect.go index f545617d711..6796d7ef1d4 100644 --- a/internal/api/oidc/introspect.go +++ b/internal/api/oidc/introspect.go @@ -23,7 +23,7 @@ func (s *Server) Introspect(ctx context.Context, r *op.Request[op.IntrospectionR ctx, span := tracing.NewSpan(ctx) defer func() { span.EndWithError(err) }() - if !s.features.ExperimentalIntrospection { + if s.features.LegacyIntrospection { return s.LegacyServer.Introspect(ctx, r) } diff --git a/internal/api/oidc/op.go b/internal/api/oidc/op.go index 7fd80983848..76caff42898 100644 --- a/internal/api/oidc/op.go +++ b/internal/api/oidc/op.go @@ -65,7 +65,7 @@ type Endpoint struct { } type Features struct { - ExperimentalIntrospection bool + LegacyIntrospection bool } type OPStorage struct {