IdentityServer4
Posted jessesong
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IdentityServer4相关的知识,希望对你有一定的参考价值。
预设:IdentityServer配置各Api相关信息,Api配置IdentityServer相关信息
1.用户访问客户端,客户端发现用户没有登录(授权)
2.根据客户端设置的令牌发行者基本地址,访问IdentityServer的网站
3.在IdentityServer的网站进行登录,成功后获得令牌,返回客户端
4.访问Api接口(有两种方式:User Access Token和Client Credentials)
5.Api验证令牌通过,返回结果
1.用户访问客户端,客户端发现用户没有登录(授权)
2.根据客户端设置的令牌发行者基本地址,访问IdentityServer的网站
3.在IdentityServer的网站进行登录,成功后获得令牌,返回客户端
4.访问Api接口(有两种方式:User Access Token和Client Credentials)
5.Api验证令牌通过,返回结果
![技术图片](https://image.cha138.com/20210804/51e9c7984bce482aad7e0defe4c9239e.jpg)
![技术图片](https://image.cha138.com/20210804/78a6a4e2f1c843db9c2d0ec65993c77d.jpg)
![技术图片](https://image.cha138.com/20210804/787d2715058b4686ba62326c0b178f7a.jpg)
以上是关于IdentityServer4的主要内容,如果未能解决你的问题,请参考以下文章