hjone72 / PlexAuth

Plex based authentication using PHP
GNU General Public License v3.0
101 stars 5 forks source link

Auth to another web server? #9

Closed jneljeff closed 7 years ago

jneljeff commented 7 years ago

I'm having a lot of trouble getting things to load in the body area. Unless it's super simple to explain a better way, could you tell me what I have to modify to set the main page to another webpage? I'm really only using this to authenticate my automation tools which will be linked from another hosted site.

hjone72 commented 7 years ago

The easiest and probably what you're after would be to replace this line https://github.com/hjone72/PlexAuth/blob/master/inc/RememberMe.php#L74 to have a redirect to your site. header('Location: '.$otherSiteURL);

See if that works for you.

jneljeff commented 7 years ago

So I replace require('main.page.php'); with header('Location: '.$http://my.site.com/index.html);? Even though I can enter the direct path into my browser, I get stuck on a blank page.

jneljeff commented 7 years ago

Nevermind. Changed it to header('Location: http://my.site.com/index.html'); and it worked. Thanks!