Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > How do I tell what authentication method is being used?

Reply
Thread Tools

How do I tell what authentication method is being used?

 
 
David Thielen
Guest
Posts: n/a
 
      11-08-2006
Specifically, how do I tell if it's windows authentication/groups vs a
MembershipUser/RoleProvider?

The best I have come up with is if (HttpContext.Current.User.Identity is
WindowsIdentity)

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm


 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      11-09-2006
Hello Dave,

I think your current means is a good one, also you can access the
IIdetnity.AuthenticationType property to detect whether the authentication
type is windows(Negotiate or NTML) or Forms. e.g.

string authtype = User.Identity.AuthenticationType

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
 
David Thielen
Guest
Posts: n/a
 
      11-09-2006
I like your suggestion better. Thanks.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Steven Cheng[MSFT]" wrote:

> Hello Dave,
>
> I think your current means is a good one, also you can access the
> IIdetnity.AuthenticationType property to detect whether the authentication
> type is windows(Negotiate or NTML) or Forms. e.g.
>
> string authtype = User.Identity.AuthenticationType
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
how to tell a method is classmethod or static method or instancemethod Zheng Li Python 3 02-15-2012 06:31 PM
Is there a method to tell me the name of the method I'm in? Xeno Campanoli Ruby 3 06-11-2009 03:42 AM
Some people tell that at present, most web hosting servers supportall kinds of programming language, some people tell me that many web hostingserver don't support Java, What is the truth? Erwin Moller Java 3 05-07-2008 05:09 PM
CAN any one tell it whats the code tell it yogesh C++ 1 03-14-2007 01:12 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57