SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

SCIMSchemaGenerator does not work with EF SCIM Store

Open aidas-simkus opened this issue 3 years ago • 1 comments

When SCIM server is set up to use EF as a persistence store and at the same time it is configured to use Swagger, the below exception is being thrown.

Some services are not able to be constructed (Error while validating the service descriptor 'ServiceType: Microsoft.Extensions.ApiDescriptions.IDocumentProvider Lifetime: Singleton ImplementationType: Microsoft.Extensions.ApiDescriptions.DocumentProvider': Cannot consume scoped service 'SimpleIdServer.Scim.Persistence.EF.SCIMDbContext' from singleton 'Microsoft.Extensions.ApiDescriptions.IDocumentProvider'.)

Commenting out services.AddSCIMSwagger() in Startup.cs fixes the issue and one can launch Swagger, but then it misses some input model definitions (e.g. a model for POST /Users).

Is there something that can be done about this issue?

aidas-simkus avatar Mar 23 '22 07:03 aidas-simkus

Hello,

Oups... We didn't pay attention. The issue is fixed in the branch "release/2.0.6".

Kind regards,

SimpleIdServer

simpleidserver avatar Mar 23 '22 12:03 simpleidserver