Serving an external web site which requires authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bsavas
    New Member
    • Mar 2008
    • 1

    Serving an external web site which requires authentication

    Hi,

    I need your suggestions about the topic.
    Actually, I'm not sure where to start but basically, I want to make something like;

    (I have an account on a site which requires log-in)
    - I'll be logged-in to that site with my account in my server.
    - And when a user connects to my site, I'll forward him/her to that
    site, using my account even if he/she doesn't have an account
    on that site...

    probably, I need to develop a proxy to do this, but I'm not sure...
    (I code in python + django)

    I really appriciate your ideas.
  • Subsciber123
    New Member
    • Nov 2006
    • 87

    #2
    Yes, you would probably need to create a sort of proxy. However, you would have to set the cookies. You might be able to do this with urllib or urllib2 instead of manually using sockets to implement HTTP (which is a real pain: I've done it too many times for specific purposes where I couldn't use other methods). Usually, sites use cookies to check if you are logged in.

    Comment

    Working...