Forms Authentication, external authentication server, & rerouting to orig. req. URL

Discussion in 'ASP .Net' started by Andrew Connell, Oct 20, 2003.

  1. I have an application where the authentication is based off another site (custom portal). The portal authenticates the user(s). Then, when they select an application, they are routed to the application's URL (different domain, different server). When they try to bypass the portal, I need to capture the URL they requested, route them to the portal (letting it authenticate them), and then send them back to the original requesting page.

    My plan is:
    > Request page from secure app URL (www.secureapp.com/foo.aspx).
    > If not authenticated, use FormsAuthentication to route to www.secureapp.com/portalAuth/outbound.aspx which would capture the original requested URL (stored in cookie/session).
    > The portal prompts for login and authenticates... sending them back to www.secureapp.com/portalAuth/inbound.aspx which pulls an encrypted QS value to assure they were authenticated and who they are. Sets some session variables, and sends them to the originally requested page.


    My problem is that the GetRedirectUrl requires a username to get the URL requested... but I don't know the user until AFTER authentication. Seems like a flaw in the design of FormsAuthentication.

    --
    -AC
    <replace NOSPAM with my last name>
     
    Andrew Connell, Oct 20, 2003
    #1
    1. Advertising

  2. Andrew Connell

    Natty Gur Guest

    Natty Gur, Oct 21, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Codex Twin
    Replies:
    8
    Views:
    486
    Codex Twin
    Dec 3, 2004
  2. Joshua
    Replies:
    8
    Views:
    6,056
    Joshua
    Sep 29, 2004
  3. Drifter

    Need Some rerouting code... puhleasse

    Drifter, Nov 19, 2003, in forum: ASP General
    Replies:
    6
    Views:
    142
    Guest
    Nov 19, 2003
  4. Florian Gross
    Replies:
    8
    Views:
    132
    Yukihiro Matsumoto
    Aug 18, 2003
  5. Une bévue
    Replies:
    14
    Views:
    217
    Une bévue
    Aug 4, 2006
Loading...

Share This Page