Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine which authentication method is used?

I was wondering: How can i determine which authentication method is in use?

For example I want to execute a code if my Authentication is based on FORMS authentication and not if it's WINDOWS Authentication.

like image 762
skini82 Avatar asked Mar 18 '23 21:03

skini82


1 Answers

You can check what's on the web config using configuration manager

ConfigurationManager.GetSection("system.web/authentication");
like image 90
nunob Avatar answered Apr 02 '23 03:04

nunob