IdentityServer4
作者:互联网
1.用户访问客户端,客户端发现用户没有登录(授权)
2.根据客户端设置的令牌发行者基本地址,访问IdentityServer的网站
3.在IdentityServer的网站进行登录,成功后获得令牌,返回客户端
4.访问Api接口(有两种方式:User Access Token和Client Credentials)
5.Api验证令牌通过,返回结果
![](https://www.icode9.com/i/l/?n=18&i=blog/107678/201905/107678-20190521203425980-946452570.png)
![](https://www.icode9.com/i/l/?n=18&i=blog/107678/201905/107678-20190521203453274-491174180.png)
![](https://www.icode9.com/i/l/?n=18&i=blog/107678/201905/107678-20190521203525147-1831136059.png)
标签:令牌,登录,访问,Api,IdentityServer,IdentityServer4,客户端 来源: https://www.cnblogs.com/JesseSong/p/10902198.html