I followed the instructions for disabling the identity server from https://doc.sitecore.com/xp/en/developers/104/sitecore-experience-manager/understanding-sitecore-authentication-behavior-changes.html#disable-sitecore-identity, as I have done for previous sites, but when I activate the config, the entire site breaks with this error: Cannot find options for the 'SitecoreIdentityJwtBearer' authentication type.
Error Message
Server Error in '/' Application.
Cannot find options for the SitecoreIdentityJwtBearer authentication type.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: Cannot find options for the 'SitecoreldentityJwtBearer authentication type.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: Cannot find options for the 'SitecoreIdentityJwtBearer' authentication type.]
Sitecore.GraphQL.NetFxHost.WebSocket.Authentication.JwtBearerAuthenticationTokenValidator.GetAccessTokenFormat (IJwtBearerAuthenticationOptions Provider options Provider, Sitecore.GraphQL.NetFxHost.WebSocket.Authentication.JwtBearerAuthenticationTokenValidator..ctor(IJwtBearerAuthenticationOptions Provider options Provider, String authent
[Target InvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle. InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeConstructor Info. Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +313 Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters) +119
Sitecore.Configuration.DefaultFactory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +128
Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +163 Sitecore.Configuration.DefaultFactory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert) +72 Sitecore.Configuration.DefaultFactory.CreateObject(String configPath, String[] parameters, Boolean assert) +703
Sitecore.GraphQL.NetFxHost.Dependency Injection.Helpers.ServiceProviderServiceExtensions.GetServiceFromNode (IServiceProvider provider, String path) +192 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context) +21 Microsoft.Extensions. DependencyInjection.ServiceLookup.CallSite Visitor 2.VisitCallSiteMain (ServiceCallSite callSite, TArgument argument) +142 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) +158 Microsoft.Extensions. DependencyInjection.ServiceLookup.CallSiteVisitor`2. VisitCallSite(ServiceCallSite callSite, TArgument argument) +377
Microsoft.Extensions. DependencyInjection.ServiceLookup.CallSiteRuntimeResolver. VisitConstructor (ConstructorCallSite constructorCallSite, RuntimeResolverContext context Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteVisitor`2. VisitCallSiteMain (ServiceCallSite callSite, TArgument argument) +274 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) +158 Microsoft.Extensions. DependencyInjection.ServiceLookup.CallSiteVisitor`2. VisitCallSite(ServiceCallSite callSite, TArgument argument) +377 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.Visit IEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context) Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain (ServiceCallSite callSite, TArgument argument) +208 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) +158 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteVisitor`2. VisitCallSite(ServiceCallSite callSite, TArgument argument) +377 Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor (ConstructorCallSite constructorCallSite, RuntimeResolverContext context Microsoft.Extensions. Dependency Injection.ServiceLookup.CallSiteVisitor 2.VisitCallSiteMain (ServiceCallSite callSite, TArgument argument) +274