IdentityServer 3 with MemebershipReboot , how to implement Custom Client store

524 Views Asked by At

I am exploring the option of using IdentityServer3 along with MembershipReboot as the IdentityManagement solution.

I have managed to download some samples from github and get them working.

Link from where i downloaded the sample :- github

But I am not able to get an example of an implementation which is using DB to persist Clients and Scopes and Claims. All the examples i have come across are using InMemory way of storing this info.

Can someone who has done this please help here?

1

There are 1 best solutions below

2
Brock Allen On

There are many moving parts that are separate that you might be conflating.

Clients and scopes are modeled by the various store extensibility points (docs: https://identityserver.github.io/Documentation/docsv2/configuration/serviceFactory.html). There is an EF implementation here: https://github.com/IdentityServer/IdentityServer3.EntityFramework.

Claims for users is modeled with the IUserService extensibility point (docs: https://identityserver.github.io/Documentation/docsv2/advanced/userService.html). If you are using MR as the backing implementation for your IUserService, then there's an implementation here: https://github.com/IdentityServer/IdentityServer3.MembershipReboot.

For all of the above we have different samples to show each one in isolation: https://github.com/IdentityServer/IdentityServer3.Samples/. It's up to you to merge the various samples that show something in isolation to match the combination you want.