Ask a Question related to ASP.NET Security, Design and Development.
-
Brad #1
Single signon (with FormsAuth) for mutliple web apps
I'm working on single signon for multiple web apps on a single domain. If I
authenticate in wepApp1 then I am authenticated in webApp2 however, anywhere
in the global.asax code of webApp2 the following don't seem to be
set/initialized:
Request.IsAuthenticated
User.Identity
The authentication cookie is available in webApp2's global.asax and once
a form is loaded (i.e. I'm on a pageload event) the values of
Request.IsAuthenticated and User.Identity are available.
So why would the values of user identity and IsAuthenticated not be
avaialble in the global.asax of webApp2?
Thanks
Brad
Brad Guest
-
Single external signon with Integrated Auth apps and regular webs
Hi, Well, after reading all of the posts in here, I'm still not quite sure if what I would like is possible. Here's my scenario: IIS5 (or 6 if... -
SSO (Single Sign On) for multiple PHP apps
We have multiple PHP apps running on different servers. We have an LDAP authentication based (today) on the apache .htpasswd file which obliged... -
FormsAuth and Sessions Troubles...
I'm having some trouble implementing Forms Authentication and using Session variables... If i just turn on Forms Auth and don't set up any roles... -
Web enabled apps/Thin client apps
I'm writing an article and I need your informed opinions, so I ask you this: 1. Doesn't the web-enabled app generally run slower for one reason or... -
How To Disable Startup/Signon Screen
Does anyone have a quick fix for eliminating the annoying start up screen (the one that asks for a login name and password) before WinXP desktop... -
Chris Jackson #2
Re: Single signon (with FormsAuth) for mutliple web apps
In terms of your code, both of your assemblies (one for each we application)
are completely separate. One assembly doesn't get to read from the other,
even though they are in the same App Domain. The ability to read the cookie
by both essentially serves as the cross-assembly communication mechanism
(visualize it as serving a similar function to named pipes); others are
available, but this is probably the easiest.
One solution I have implemented is to create a custom logon page that looks
for a cookie that indicates authentication. If I find a valid cookie, then I
go ahead and set up that user as authenticated and return to the page that
requested the authentication. If I don't, then I display the page as normal
and have them enter their user/pass.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows XP
Windows XP Associate Expert
--
"Brad" <nospam@co.lane.or.us> wrote in message
news:%23SiEhvtgDHA.3828@tk2msftngp13.phx.gbl...I> I'm working on single signon for multiple web apps on a single domain. Ifanywhere> authenticate in wepApp1 then I am authenticated in webApp2 however,once> in the global.asax code of webApp2 the following don't seem to be
> set/initialized:
> Request.IsAuthenticated
> User.Identity
> The authentication cookie is available in webApp2's global.asax and> a form is loaded (i.e. I'm on a pageload event) the values of
> Request.IsAuthenticated and User.Identity are available.
>
> So why would the values of user identity and IsAuthenticated not be
> avaialble in the global.asax of webApp2?
>
>
> Thanks
>
>
> Brad
>
>
>
Chris Jackson Guest
-
Brad #3
Re: Single signon (with FormsAuth) for mutliple web apps
I found the problem....basicaly a brain lapse on my part after being away
from hands-on coding for a few months.
I can access the authentication info just fine but I need to do it in
Application_AuthenticateRequest. Once I did that then everything works as I
expected: Identity is avaialble and IsAuthenticated is true is the user is
logged in.
Brad
"Chris Jackson" <chrisj@mvps.org> wrote in message
news:uHqrDQ3gDHA.2172@TK2MSFTNGP09.phx.gbl...application)> In terms of your code, both of your assemblies (one for each wecookie> are completely separate. One assembly doesn't get to read from the other,
> even though they are in the same App Domain. The ability to read thelooks> by both essentially serves as the cross-assembly communication mechanism
> (visualize it as serving a similar function to named pipes); others are
> available, but this is probably the easiest.
>
> One solution I have implemented is to create a custom logon page thatI> for a cookie that indicates authentication. If I find a valid cookie, thennormal> go ahead and set up that user as authenticated and return to the page that
> requested the authentication. If I don't, then I display the page asIf> and have them enter their user/pass.
>
> --
> Chris Jackson
> Software Engineer
> Microsoft MVP - Windows XP
> Windows XP Associate Expert
> --
> "Brad" <nospam@co.lane.or.us> wrote in message
> news:%23SiEhvtgDHA.3828@tk2msftngp13.phx.gbl...> > I'm working on single signon for multiple web apps on a single domain.> I> anywhere> > authenticate in wepApp1 then I am authenticated in webApp2 however,> once> > in the global.asax code of webApp2 the following don't seem to be
> > set/initialized:
> > Request.IsAuthenticated
> > User.Identity
> > The authentication cookie is available in webApp2's global.asax and>> > a form is loaded (i.e. I'm on a pageload event) the values of
> > Request.IsAuthenticated and User.Identity are available.
> >
> > So why would the values of user identity and IsAuthenticated not be
> > avaialble in the global.asax of webApp2?
> >
> >
> > Thanks
> >
> >
> > Brad
> >
> >
> >
>
Brad Guest
-
Jacob Yang [MSFT] #4
Re: Single signon (with FormsAuth) for mutliple web apps
Hi Brad,
I am glad to know that the problem is resolved.
Thank you very much for sharing your solution. It is helpful to everybody
here.
Best regards,
Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C [url]www.microsoft.com/security[/url]
This posting is provided "as is" with no warranties and confers no rights.
Jacob Yang [MSFT] Guest



Reply With Quote

