mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-21 15:19:14 +00:00
legacy introspection flag
This commit is contained in:
@@ -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:
|
||||||
|
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@ type Endpoint struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type Features struct {
|
type Features struct {
|
||||||
ExperimentalIntrospection bool
|
LegacyIntrospection bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type OPStorage struct {
|
type OPStorage struct {
|
||||||
|
Reference in New Issue
Block a user