本文介绍了IdentityServer4,.net Core Web Api;在启用社交登录的情况下实施个人用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找出以下可能性以及如何实现:使用IdentityServer4在.Net Core中实现为Web Api启用的单个用户帐户登录,提供以下功能:-生成访问令牌,-生成刷新令牌,-启用社交登录,-启用基于卷的授权-使用本地数据库进行存储(EntityFramework ...)

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.

推荐答案

我已经创建了概念证明项目.长话短说,请克隆项目 https://github.com/ChrisRichner/CoreWebApp.Quickstart,然后立即开始使用以下功能.

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(https的注释代码)
    • AspNetCore 1.0
      • https Kestrel (uncomment Code for https)
      • AspNetIdentity
      • EntityFrameworkStorage
      • 社交登录信息(Google,Twitter)
      • IdentityServer OAuth集成

      享受!

      这篇关于IdentityServer4,.net Core Web Api;在启用社交登录的情况下实施个人用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 01:20