Re: Forms Authentication

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 11/14/05


Date: Mon, 14 Nov 2005 04:46:47 -0800

Hello frpascal,

so a use can be whoever he wants to when he manually changes the value (filled
by your javascript) before the POST to the server??

That's not a good solution.

Why don't you provide a separate directory for windows users - with windows
auth - then in AuthenticateRequest - construct a formsAuth ticket manually,
set the cookie and redirect to your main page?

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi,
>
> For an Intranet, I try to capture the windows logon automaticaly to
> identify
> the user with a little javascript. I put this varaible in an Input
> object
> and use it with a
> "FormsAuthentication.RedirectFromLoginPage(LoginUserWindows.Value,
> False)"
> just before the Response.Redirect("\Planning\PagePrincipale.aspx").
> After that i recall the value with an "User.Identity.Name".
> The trace tells me that Auth-User and Remote-User values are correct
> but I can't get those values with the User.Identity.name after the
> redirection.
>
> It is working fine with W2000 but don't work anymore with Win XP
> neither Win 2003.
>
> Thanks for any help.
> Pascal



Relevant Pages

  • Re: Windows Form Dictionary
    ... You are displaying some database generated content in a WebBroser control on a Windows Forms application? ... This content uses JavaScript to extract a marked word? ... create some windows form via javascript. ... When you have your word captured with JavaScript, use JavaScript to redirect your page. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: The Psychology of Responding to Crackpots
    ... > designed to disrupt the functioning of computers. ... there is also an attached Javascript that could ... windows and move them around the screen, Furthermore, ...
    (sci.logic)
  • JavaScript questions
    ... First, to insure MAXIMUM Security, I disbaled JavaScript ... Windows version on the CD. ... A fresh install or even a repair installation is not ...
    (microsoft.public.windowsxp.general)
  • Re: HTTP in the background in IE
    ... > JavaScript code then reloads the main page, ... > you exit & reload the main page. ... I want to allow each client to have two windows that ... Have the JavaScript test for IE and request "/updateIE.html" ...
    (comp.lang.javascript)
  • Re: best language
    ... of JavaScript tutorials and general information on the web. ... Simplest in Windows is as a Windows HTML application. ... You can choose from a number of widget technologies, e.g. Yahoo Widgets, Google Widgets, or e.g. Windows Vista's Desktop Gadgets. ... However, at least as of a year ago, XUL applets had to run from a Firefox or other Mozilla browser instance. ...
    (comp.programming)

Quantcast