如何确定使用哪种身份验证方法? [英] How to determine which authentication method is used?

查看:92
本文介绍了如何确定使用哪种身份验证方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道:如何确定正在使用哪种身份验证方法?

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

例如,如果我的身份验证基于FORMS身份验证而不是WINDOWS身份验证,则我想执行代码.

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

推荐答案

您可以使用配置管理器查看网络配置中的内容

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

ConfigurationManager.GetSection("system.web/authentication");

这篇关于如何确定使用哪种身份验证方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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