Jump to content

HTTP Connect to External Site:


shortaug

Recommended Posts

A small backdrop: I am working with an authentication system. A user uses this system to maintain a single username/password for multiple sites. Third party sites then use this authentication system to validate users.

 

My trouble:

 

The login and validation process operates through browser refreshes. The last stage of the authentication is the return of two lines of text. A 'yes' and a 'username'.

 

The first refresh takes a user away from thirdparty.com to authenticate.com?authtype=..&refreshURL=thirdparty.com

If a valid username/password is entered at this site, then the refreshURL becomes the active site with a ticket appended to the URL.

Once thirdparty.com?ticket=... is called again, the validation occurs.

 

This is my trouble: If I use a browser refresh to make this validation, which calls authenticate.com?ticket=..., then all that is returned is two lines of text as noted above.

 

So what I want is to call this validation URL from within a PHP script and store the results so that I can manipulate them and create a user session. I have scoured and scoured, but I cannot come up with this. I know I'm probably just using the wrong search terms though. I'm not the greatest at searching...

 

Any help is appreciated. Danke in advance.

Link to comment
https://forums.phpfreaks.com/topic/102506-http-connect-to-external-site/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.