Validation

Tuesday, September 29, 2020 3:58:49 PM
  • Posted: Sunday, September 13, 2020 7:52 PM
  • 47
hi
i want to add my own token validation jwt for client side api access.
how i can do that.i can not add  builder.AddJwtBearer()

InvalidOperationException: Scheme already exists: Bearer
Microsoft.AspNetCore.Authentication.AuthenticationOptions.AddScheme(string name, Action<AuthenticationSchemeBuilder> configureBuilder)

DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor(Microsoft.Extensions.Options.IOptions`1[Microsoft.AspNetCore.Authentication.AuthenticationOptions])' on type 'AuthenticationSchemeProvider'.
Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()

DependencyResolutionException: An exception was thrown while activating Microsoft.AspNetCore.Authentication.AuthenticationSchemeProvider.
0
  • Posted: Monday, September 14, 2020 10:32 AM
  • Team
  • 709
Scheme which you are trying to use is already used by our API. You need to create a new one with different name.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters