如何使用web api通过客户端证书进行身份验证? [英] how to authenticate by client certificate , using web api ?

查看:130
本文介绍了如何使用web api通过客户端证书进行身份验证?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想建立安全的网站,在那个

1)我不想把登录窗口/弹出窗口。

2)我将为我的客户创建不同的数字证书。

例如。 ABC客户端有abc.pfx

DEF客户端有def.pfx

3)所以当客户ABC来到现场时,它会要求提供证书,客户将选择abc。 pfx然后我想向他展示login1.aspx页面,如果DEF客户端来了我想要显示login2.aspx。

4)这些我想通过WEB API做的。

5)在这里,我不想将客户的名字或指纹存储在数据库中。



如果有人有解决方案,请尽快通知我。



谢谢。

Hello all,
I want to made secure web site , in that
1)I dont want to put login window/pop-up.
2)I will create different digital certificate for my clients.
eg. ABC client have abc.pfx
DEF client have def.pfx
3) so when client ABC comes on site , it will ask for certificate , and client will select abc.pfx then i want to show him login1.aspx page if DEF client come i want to show login2.aspx .
4) These all i want to do by WEB API.
5) Here i dont want to store client's name or thumbprint in database.

If any one have solution , let me know as soon as possible.

Thank you.

推荐答案

http://www.asp.net/web-api/overview/security/working-with-ssl-in-web-api [ ^ ]

本文应该对您有所帮助。来吧,试试。
http://www.asp.net/web-api/overview/security/working-with-ssl-in-web-api[^]
This article should help you. Go ahead, try.


这篇关于如何使用web api通过客户端证书进行身份验证?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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