首页 > 技术文章 > IdentityServer4【Introduction】之包和项目构建

pangjianxin 2018-07-25 14:21 原文

包和项目构建

IdentityServer包含了以下的nuget包:

IdentityServer4

nuget | github

这个包包含了IdentityServer核心的组成部分,有对象模型,服务和中间件。只支持基于内存的配置和用户存储--但是你可以通过配置来支持其他的存储方式。这是其他的包和存储库所涉及到的。

这个包主要用于Identityserver中,用来配置资源、客户端、用户等信息的。

Quickstart UI

github

这个UI包含了登陆、登出和确认等基本页面。

IdentityServer4.AccessTokenValidation

nuget | github

用于在APIs中进行token校验的asp.net core authentication handler。在相同的API中handler既支持JWT形式的也支持引用token形式的校验。

这个包主要用于API校验token的有效性的。

IdentityServer4.AspNetIdentity

nuget | github

用于IdentityServer的Asp.net core Identity集成包。这个包提供了一些简单的用于配置的API(和上面说的API不是一回事儿),以便于在你的IdentityServer用户上使用asp.net identity库。

IdentityServer4.EntityFramework 

nuget | github

IdentityServer的EntityFramework Core存储库实现。这个包提供了一个EF的实现用于在IdentityServer中配置和操作存储

Dev builds

此外我们也在MyGet上发布了dev/interim的分支,如果你想试一下的话你可以在visual studio中使用如下URL:https://www.myget.org/F/identity/

推荐阅读