Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Forms based authentication between 2 applications

Forms based authentication between 2 applications

Scheduled Pinned Locked Moved ASP.NET
securityquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sboux
    wrote on last edited by
    #1

    I am looking for a way to authenticate a user from one web app to be able to access a seperate web app. For instance. I have http://localhost/WEBAPP\_B/ and it will deny all un-authenticated users. But the login form for http://localhost/WEBAPP\_B/ is on http://localhost/WEBAPP\_A/. So far I have tried setting the loginUrl (in Web.config) from WEBAPP_B to WEBAPP_A/Login.aspx and I get forwarded to it, but when i supply the credentials I just get forwarded back to WEBAPP_A/Login.aspx repeatedly. I am assuming the authentication cookie that is written is only good for WEBAPP_A and I remain un-authenticated for WEBAPP_B. So is it possible to create an authentication cookie from WEBAPP_A that WEBAPP_B will accept? Or is there a better way? Any advice or direction is appreciated! Thanks! -sb

    M 1 Reply Last reply
    0
    • S sboux

      I am looking for a way to authenticate a user from one web app to be able to access a seperate web app. For instance. I have http://localhost/WEBAPP\_B/ and it will deny all un-authenticated users. But the login form for http://localhost/WEBAPP\_B/ is on http://localhost/WEBAPP\_A/. So far I have tried setting the loginUrl (in Web.config) from WEBAPP_B to WEBAPP_A/Login.aspx and I get forwarded to it, but when i supply the credentials I just get forwarded back to WEBAPP_A/Login.aspx repeatedly. I am assuming the authentication cookie that is written is only good for WEBAPP_A and I remain un-authenticated for WEBAPP_B. So is it possible to create an authentication cookie from WEBAPP_A that WEBAPP_B will accept? Or is there a better way? Any advice or direction is appreciated! Thanks! -sb

      M Offline
      M Offline
      Mazdak
      wrote on last edited by
      #2

      I think you have to write you r own custom authentication and set the cookie of authentication yourself and do not use the pre defind methos of Form based authentication.Then you can read it from your both applications and see if user login in that computer or not. Mazy "Improvisation is the touchstone of wit." - Molière

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups