为什么以及如何在api控制器中使用身份? [英] why and How identity is used in api controller?

查看:58
本文介绍了为什么以及如何在api控制器中使用身份?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想了解.net中的安全功能。特别是未经授权的人无法访问数据。因此,如何在api控制器应用程序中使用身份。

解决方案

查看有关该主题的一些基本文章:



* 介绍 - aspnet-identity [ ^ ] \

* ASP.NET MVC和Identity 2.0:理解基础知识 [ ^ ]



祝你好运


< blockquote>参考



1. 安全问题f或Web API [ ^ ]

2. 使用ASP.NET Web API 2,Owin和身份进行基于令牌的身份验证 [ ^ ]


I want to know about the security feature in .net. Specially Unauthorized person can not access data.For that reason how to use 'Identity' in api controller application.

解决方案

See some basic articles on the subject:

* introduction-to-aspnet-identity[^]\
* ASP.NET MVC and Identity 2.0: Understanding the Basics[^]

Good luck


Refer

1. Security issues for Web API[^]
2. Token Based Authentication using ASP.NET Web API 2, Owin, and Identity[^]


这篇关于为什么以及如何在api控制器中使用身份?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆