legacy introspection flag

This commit is contained in:
Tim Möhlmann
2023-11-14 14:31:58 +02:00
parent 3797f18e5e
commit 1cf627c3f5
3 changed files with 4 additions and 3 deletions

View File

@@ -315,7 +315,8 @@ OIDC:
DefaultLoginURLV2: "/login?authRequest=" # ZITADEL_OIDC_DEFAULTLOGINURLV2 DefaultLoginURLV2: "/login?authRequest=" # ZITADEL_OIDC_DEFAULTLOGINURLV2
DefaultLogoutURLV2: "/logout?post_logout_redirect=" # ZITADEL_OIDC_DEFAULTLOGOUTURLV2 DefaultLogoutURLV2: "/logout?post_logout_redirect=" # ZITADEL_OIDC_DEFAULTLOGOUTURLV2
Features: Features:
ExperimentalIntrospection: true # Allows fallback to the Legacy Introspection implementation
LegacyIntrospection: false
SAML: SAML:
ProviderConfig: ProviderConfig:

View File

@@ -23,7 +23,7 @@ func (s *Server) Introspect(ctx context.Context, r *op.Request[op.IntrospectionR
ctx, span := tracing.NewSpan(ctx) ctx, span := tracing.NewSpan(ctx)
defer func() { span.EndWithError(err) }() defer func() { span.EndWithError(err) }()
if !s.features.ExperimentalIntrospection { if s.features.LegacyIntrospection {
return s.LegacyServer.Introspect(ctx, r) return s.LegacyServer.Introspect(ctx, r)
} }

View File

@@ -65,7 +65,7 @@ type Endpoint struct {
} }
type Features struct { type Features struct {
ExperimentalIntrospection bool LegacyIntrospection bool
} }
type OPStorage struct { type OPStorage struct {