C
compurhythms
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
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