上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 56 下一页
摘要: 1.新建项目并添加引用 新建一个asp .net core 2.0的项目引用IdentityServer4.AccessTokenValidation 2.配置 将Api与IdentityServer服务器挂钩 3.Api接口 添加一个新的Controller,使用此控制器来测试授权要求,以及通过A 阅读全文
posted @ 2017-12-05 14:06 Lulus 阅读(1020) 评论(0) 推荐(0)
摘要: 客户端控制台演示请求访问令牌,然后使用此令牌访问API 1.新建项目并添加引用 新建一个.net core的控制台程序IdentityServer.EasyDemo.Client 1 1 引用IdentityModel 2 2 2.调用方法 在Program.cs中,写上调用的方法,如下所示: 3. 阅读全文
posted @ 2017-12-05 14:04 Lulus 阅读(1539) 评论(0) 推荐(1)
摘要: 组成 IdentityServer,Api和Client(客户端,asp .net core)本文以官方demo:https://github.com/IdentityServer/IdentityServer4.Samples/tree/release/Quickstarts/6_AspNetId 阅读全文
posted @ 2017-12-05 14:04 Lulus 阅读(3306) 评论(3) 推荐(1)
摘要: 1.创建项目并添加引用 创建ASP.NET Core Web API项目IdentityServer.EasyDemo.Api 1 1 2 2 引用IdentityServer4.AccessTokenValidation 3 3 2.定义一个Api接口 新增接口文件IdentityControll 阅读全文
posted @ 2017-12-05 14:03 Lulus 阅读(1151) 评论(0) 推荐(1)
摘要: 1.新建项目 新建ASP .Net Core项目IdentityServer.EasyDemo.IdentityServer,选择.net core 2.0 1 1 2 2 引用IdentityServer4 3 3 2.定义Api资源 添加一个Config.cs文件,在其中定义Api资源Api资源 阅读全文
posted @ 2017-12-05 14:00 Lulus 阅读(1794) 评论(0) 推荐(1)
摘要: 概念图 apparch apparch 最常见的交互是:浏览器与web应用程序通信web应用程序与web APIs进行通信基于浏览器的应用程序与web APIs通信原生应用与web APIs通信基于服务的应用程序与web APIs通信web APIs与web APIs进行通信 通常,每个层(前端、中 阅读全文
posted @ 2017-12-05 13:59 Lulus 阅读(877) 评论(0) 推荐(1)
摘要: 项目结构 共分为三个组成部分: 流程 process process 预设:IdentityServer配置各Api相关信息,Api配置IdentityServer相关信息1.Client访问IdentityServer2.IdentityServer验证用户信息并授权,返回给Client3.Cli 阅读全文
posted @ 2017-12-05 13:59 Lulus 阅读(482) 评论(0) 推荐(0)
摘要: 基本概念 IdentityServer4是一个基于OpenID Connect和OAuth 2.0的针对ASP.NET Core 2.0的框架。 IdentityServer4可以帮助我们实现什么 IdentityServer是将规范兼容的OpenID Connect和OAuth 2.0终结点添加到 阅读全文
posted @ 2017-12-05 13:52 Lulus 阅读(3138) 评论(0) 推荐(1)
摘要: //读取Views文件夹下的js和css app.UseStaticFiles(new StaticFileOptions() { FileProvider = new PhysicalFileProvider( Path.Combine(Directory.GetCurrentDirectory( 阅读全文
posted @ 2017-12-01 16:42 Lulus 阅读(1572) 评论(0) 推荐(0)
摘要: wcf托管服务注意的问题 加上项目分为客户端-WCF服务-逻辑层-数据库三层wcf一直出现异常,说没有初始化啊之类的,如果你的逻辑代码确定没有问题的话,思考是不是wcf的配置文件(app.config)出了问题由于wcf,逻辑层,数据库层是同域的,虽然都引用了,但是需要在配置文件里面也需要修改 但是 阅读全文
posted @ 2017-12-01 10:53 Lulus 阅读(298) 评论(0) 推荐(0)
上一页 1 ··· 38 39 40 41 42 43 44 45 46 ··· 56 下一页