Programatically change authentication mode at startup of web app?
- From: compurhythms@xxxxxxxxx
- Date: 13 Jul 2006 14:39:50 -0700
Is there any way to change the authentication mode of a web app during
startup, say in the globl.asax.cs file? (if you are using c# of
course).
I have a situation where in some cases I need to use forms
authentication and sometimes I need windows authentication. They both
work fine stand-alone with static web.config files, but I need to make
the decision programatically based on external factors. Is this
possible?
I've already tried trapping the Application.Start event in
global.asax.cs and mucking with the properties of the
AuthenticationSection and AuthorizationSection objects that are loaded
from web.config, but even though they can be changed at runtime there
seems to be no effect.
Mike
.
- Follow-Ups:
- Re: Programatically change authentication mode at startup of web app?
- From: Dominick Baier
- Re: Programatically change authentication mode at startup of web app?
- Prev by Date: ASP.NET 2 Membership does not allow update user name
- Next by Date: Re: Programatically change authentication mode at startup of web app?
- Previous by thread: ASP.NET 2 Membership does not allow update user name
- Next by thread: Re: Programatically change authentication mode at startup of web app?
- Index(es):
Relevant Pages
|
|