AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Custom Storage Providers for ASP.NET Core Identity

Open danroth27 opened this issue 10 years ago • 19 comments

Port http://www.asp.net/identity/overview/extensibility/overview-of-custom-storage-providers-for-aspnet-identity to ASP.NET Core Identity

See https://github.com/aspnet/Identity/issues/1113

Yeah we shouldn't call it the UOW pattern since its not exactly that, best to just be explicit and say something to the effect of: "Stores should only persist changes in the CreateAsync/UpdateAsync/DeleteAsync methods of base Store interface, any other store method should only manipulate the entity without persisting the changes."

Overall structure same as previous article; Hao and Steve will work together to update it.

Main changes: removed TKey from all interfaces. The key is now always a string to identity - it's up to the provider to convert that string into its type.

danroth27 avatar Apr 25 '16 17:04 danroth27

Any update on this?

DeluxZ avatar Jun 28 '16 11:06 DeluxZ

@blowdart Not yet - it's still on our backlog

danroth27 avatar Jun 28 '16 17:06 danroth27

+1 for this, I'm trying to get rid of the EF dependency and this would come handy.

jorgeyanesdiez avatar Jul 21 '16 13:07 jorgeyanesdiez

+1 This is essential functionality if people are going to be moving to .NET Core for production apps.

CodingSamurai avatar Oct 19 '16 18:10 CodingSamurai

+1, I'm also trying to get rid of the EF dependency

StephanZahariev avatar Nov 12 '16 22:11 StephanZahariev

+1, when do you expect to get it done ?

AbdoDabbas avatar Nov 14 '16 10:11 AbdoDabbas

@HaoK @blowdart There's quite a bit of customer interest in getting this content out sooner. Is this something you guys could help out with?

danroth27 avatar Nov 17 '16 07:11 danroth27

I can take a pass over the old article and see what needs updating

HaoK avatar Nov 17 '16 09:11 HaoK

+1

jrgunawan avatar Feb 17 '17 20:02 jrgunawan

Folks, any news?

dntim avatar Mar 29 '17 15:03 dntim

This is actively being worked on and should be published in the next few weeks.

danroth27 avatar Mar 29 '17 15:03 danroth27

are we getting close yet?

Greatsamps avatar Apr 24 '17 14:04 Greatsamps

+1 any updates on the progress?

rushfive avatar May 18 '17 03:05 rushfive

Any update on this?

krunalrspl avatar May 23 '17 12:05 krunalrspl

Still no update guys? Very keen to remove this EF dependency...

RobVargaCH avatar Jun 15 '17 16:06 RobVargaCH

I believe @ardalis will have a PR out for this shortly

danroth27 avatar Jun 15 '17 16:06 danroth27

This week!

ardalis avatar Jun 15 '17 16:06 ardalis

Hi Guys, thanks very much for getting this out; all looks good and clear. One small recommendation I have is that in Steve's code the ApplicationUser inherits from ClaimsIdentity: this may confuse some users and maybe a quick one-liner about implementing IIdentity as an alternative may be helpful.

Thanks again.

Cheers, Rob

RobVargaCH avatar Jun 27 '17 14:06 RobVargaCH

@RobVargaCH Thanks, I updated the sample in the PR to use IIdentity instead of ClaimsIdentity, along with a couple of other minor tweaks.

ardalis avatar Jun 27 '17 18:06 ardalis