开发者

Adding basic authentication to ASP MVC action

开发者 https://www.devze.com 2023-01-15 07:13 出处:网络
I h开发者_Go百科ave an ASP MVC app that uses it\'s own custom authentication mechanism. However there is only one Action in one controller that I need to secure using Basic Authentication.

I h开发者_Go百科ave an ASP MVC app that uses it's own custom authentication mechanism. However there is only one Action in one controller that I need to secure using Basic Authentication.

The idea is when the URL for this particular action is hit, the browser pops up the basic authentication dialog and then I need to have the username and password IN the action itself.

Any suggestions?


This is the answer which works: ASP.NET MVC - HTTP Authentication Prompt

0

精彩评论

暂无评论...
验证码 换一张
取 消