Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding basic authentication to ASP MVC action

I have 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?

like image 269
Khash Avatar asked Nov 05 '22 09:11

Khash


1 Answers

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

like image 78
Khash Avatar answered Nov 09 '22 03:11

Khash