IdentityServer4, .net Core Web Api; implementing individual user accounts with social logins enabled

依然范特西╮ 提交于 2019-12-23 03:27:06

问题


I am trying to figure out whether the following is possible and how can it be done: Implementing individual user accounts login enabled for Web Api in .Net Core using IdentityServer4, providing the following capabilities: - Generating access tokens, - Generating refresh tokens, - Enabling social logins, - Enabling roll-based authorization - Using local database for storage (EntityFramework...)

I wasn't able to get this under control using the available documents, I was wondering if anybody has done something similar before or knows where to start.


回答1:


I've created a proof of concept project. To make a long story short clone the project https://github.com/ChrisRichner/CoreWebApp.Quickstart and start playing with the following features immediately.

  • AspNetCore 1.0
    • https Kestrel (uncomment Code for https)
  • Thinktecture IdentityServer4
    • AspNetIdentity
    • EntityFrameworkStorage
    • Social Logins (Google, Twitter)
  • Swagger
    • IdentityServer OAuth Integration
  • Unit Tests based on XUnit

Enjoy!



来源:https://stackoverflow.com/questions/39644055/identityserver4-net-core-web-api-implementing-individual-user-accounts-with-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!