新文章 网摘 文章 随笔 日记

文章分类 -  MVC

摘要:如果它们都是新应用程序,那么为公司的一组业务应用程序实施单点登录并不困难,特别是如果您使用WS-Federation和Identity Server(例如Thinktecture)。如果它是新应用程序和现有应用程序的组合,那么如果您首先了解整个技术并了解其工作原理,它将有助于解决所有问题。Jarek 阅读全文
posted @ 2020-12-01 14:30 岭南春 阅读(114) 评论(0) 推荐(0)
摘要:{ ViewData.Add(item.Key, item.Value); } } //The controller used to all this view Type controllerType = Helper.GetModelType(controllerName); //Creating 阅读全文
posted @ 2020-12-01 08:34 岭南春 阅读(45) 评论(0) 推荐(0)
摘要:1、JWT 1.1 基于 Token 的身份验证方法 使用基于 Token 的身份验证方法,在服务端不需要存储用户的登录记录。大概的流程是这样的: 客户端使用用户名跟密码请求登录 服务端收到请求,去验证用户名与密码 验证成功后,服务端会签发一个 Token,再把这个 Token 发送给客户端 客户端 阅读全文
posted @ 2020-11-27 08:54 岭南春 阅读(228) 评论(0) 推荐(0)
摘要:您想将filterContext上的Result设置为RedirectResult,而不是对响应进行重定向。 filterContext.Result = new RedirectResult { Url = loginUrl };https://stackoverflow.com/question 阅读全文
posted @ 2020-11-26 16:46 岭南春 阅读(153) 评论(0) 推荐(0)
摘要:$"{Request.Url.Scheme}{System.Uri.SchemeDelimiter}{Request.Url.Authority}"https://stackoverflow.com/questions/61817/whats-the-best-method-in-asp-net-t 阅读全文
posted @ 2020-11-26 09:55 岭南春 阅读(68) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Data; using System.Reflection; namespace Phoenix.Common.Infrastructure.Helpers { public s 阅读全文
posted @ 2020-11-17 14:39 岭南春 阅读(127) 评论(0) 推荐(0)
摘要:public class SimpleApiClient { public static HttpClient CreateHttpClient() { var handler = GetInsecureHandler(); HttpClient httpClient = new HttpClien 阅读全文
posted @ 2020-11-04 15:54 岭南春 阅读(225) 评论(0) 推荐(0)
摘要:fanly11 2017-06-19 原文 一、前言 至今为止编程开发已经11个年头,从 VB6.0,ASP时代到ASP.NET再到MVC, 从中见证了.NET技术发展,从无畏无知的懵懂少年,到现在的中年大叔,从中的酸甜苦辣也只有本人自知。随着岁月的成长,技术也从原来的三层设计到现在的领域驱动设计, 阅读全文
posted @ 2019-12-01 10:19 岭南春 阅读(117) 评论(0) 推荐(0)