Answered by:
Can I use Asp.Net Identity in WCF?

Question
-
User919378809 posted
Hi All,
I am new to Asp.Net Identity; in most of my application we are using web service for the database activity. I go through many online Asp Net Identity article but everywhere they are creating identity from presentation/UI layer.
I want to know that whether we can use Asp.Net Identity implementation in WCF layer(like adding new user to db, user authentication etc). Is it a good idea to implement it in WCF? If so how will/best way to send the token information back to UI.
Thanks
Selvakumar R
Tuesday, August 2, 2016 10:06 PM
Answers
-
User475983607 posted
WCF is a service where the client is a web app. The token is between the client browser and web app. If you want to use identity over WCF then you'll need to build a custom identity implementation that comsumes the WCF rather than the default EF stores.- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 2, 2016 11:39 PM -
User1724605321 posted
Hi Selvakumar Ramachandran,
You could implement your own IUserStore and IRoleStore in identity framework , please refer to below article for details :
http://odetocode.com/blogs/scott/archive/2014/01/20/implementing-asp-net-identity.aspx
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 3, 2016 7:11 AM
All replies
-
User475983607 posted
WCF is a service where the client is a web app. The token is between the client browser and web app. If you want to use identity over WCF then you'll need to build a custom identity implementation that comsumes the WCF rather than the default EF stores.- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Tuesday, August 2, 2016 11:39 PM -
User1724605321 posted
Hi Selvakumar Ramachandran,
You could implement your own IUserStore and IRoleStore in identity framework , please refer to below article for details :
http://odetocode.com/blogs/scott/archive/2014/01/20/implementing-asp-net-identity.aspx
Best Regards,
Nan Yu
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, August 3, 2016 7:11 AM