ASP.NET Core WebApi based on Redis implement Token Interface safety certification

I. Course Introduction

Ming did not say dark words, follow Eben play WebApi! Development WebApi service providing data, the most important is data security. So for us, how to ensure the security of data will need to think about the problem. Can be achieved by SoapHead authentication mechanism in ASP.NET WebService service, then in ASP.NET Core WebApi How should we ensure that our interface security? In recent years began to rage RESTful API using HTTP header authentication token to pass seemed to grow as it should, while the single-page application (SPA), before and after the end of the separation architecture seems to contribute to a growing number of WEB application to abandon the historic cookie / session authentication mechanism. The share Eben course will share common interfaces based on Redis to implement Token verify the identity of an API that safe!

 1.1, the correct way of learning programs Notes

1), supporting video + source code examples to learn, there are a thousand thousand readers Hamlet, eyes of the beholder wise see wisdom!

2), the basic theory and practical exercises combined Yangaoshoudi remember. (Note: The need to have some ASP.NET Core foundation, this course is not a zero-based teaching, the curriculum focuses on a practical exercise, so we need to combine their actual situation choose to study)

3), in the learning process, we have less to complain about, the more of a harvest.

If you encounter any problems in the course of the learning process, please go directly to private Eben teacher online communication and exchange. Thank you for your understanding and support, I wish you a happy learning!

1.2 The course for the crowd as follows:

1), there are certain ASP.NET Core development foundation.

2), to learn and understand ASP.Net Core cross-platform development technology.

3), like Eben share of children's shoes dry course.

1.3, stating target and today we learn to achieve:

How to use the ASP.NET Core WebApi implement secure authentication based on Redis Token Interface identity.

如果您同样对本次分享《ASP.NET Core WebApi基于Redis实现Token接口安全认证》课程感兴趣的话,那么请跟着阿笨一起学习吧。废话不多说,直接上干货,我们不生产干货,我们只是干货的搬运工。

二、什么是认证和授权

三、WebApi基于Redis实现Token接口认证实现原理讲解

3.1、基于分布式Session方式实现Token认证基本思路如下:

1.png

ASP.NET Core WebApi基于Redis实现Token接口认证

四、实战源码在线解读和演示

2.png

ASP.NET Core WebApi基于Redis实现Token接口认证


3.png

ASP.NET Core WebApi基于Redis实现Token接口认证


【网易云课堂】:点击在线观看

【腾讯课堂】:点击在线观看

【微信公众号】:跟着阿笨一起玩NET





Guess you like

Origin blog.51cto.com/4500899/2447445