搭建ASP.NET Core Identity API 安全登入 基于 IdentityServer4 Visual Studio 2017

关于本文 在这篇文章中,我们会介绍对 IdentityServer4 的使用,以及如何与 ASP.NET Core 相关联,搭建安全的API对话。官方的文档在这里可以浏览 http://docs.identityserver.io/en/release/quickstarts/0_overview.html. 官方的很详细,但略过了一些细节和代码。 这里,针对官网文档的不足,我在这里展示了如果利用IdentityServer4构建安全对话。为了更好地理解IdentityServer,建议读者在阅读本文的同时可以参照官网文档。 如果你拿本文与官网文档作对比,请将本文作为官网的补充,而不是一个替代。我也是参照官网去完成一个个步骤的。你可以去我的Github下载源代码 Github Repository “.Net_Core_IdentityServer4_Connection_Starter” . 由于时间有限以及VS的语言版本,恕不能把我的这篇文章尽数翻译,请各位中文读者见谅。 [crayon-5d5f1b5624668277166925/] 1.Big Picture for Our Demo Before our journey to use Identity with ASP.Net Core, I wish you gain a big picture about the oauth 2.0. You could get more information from here at http://docs.identityserver.io/en/release/intro/big_picture.html#. In this demo, we will create 3 projects : App Server, API Server and Client App. We could consider App Server as Facebook Server, API Server as a mobile game server, and the Client App as

Continue Reading

Data Binding and Form Submission with .Net Core MVC Visual Studio 2017

Currently, Microsoft have release its Core 1.1 and we are sure there will be more supports in Core and related libraries. Maybe there have been newer versions when you read my post. In this post, we will discuss how to create a simple register form submission with Model and View data binding. To building this demo, this post from Ed Andersen gives me a lot help, if you have any question about data binding in .Net MVC, that blog will certainly help you.

Continue Reading

Site Footer