Liam Hicks
-
Posts
8 -
Joined
-
Last visited
Content Type
Downloads
Release Notes
IPS4 Guides
IPS4 Developer Documentation
Invision Community Blog
Development Blog
Deprecation Tracker
Providers Directory
Forums
Events
Store
Gallery
Posts posted by Liam Hicks
-
-
Hi,
Using the SSO example provided here:
I'm getting a random string of characters e.g. '7a63e65db1164d4b5e7824e12fc97f64'.
I'm using a Laravel install, with the forums folder placed in the '/public' directory. I've created a test.php file in the '/public' directory which has the following in it:
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); /* Require the init.php file from the Community Suite root directory */ require '/home/forge/mysite.com/public/forums/init.php'; /* Initiate the session to verify who this user is */ \IPS\Session\Front::i(); /* Print the user's name */ print \IPS\Member::loggedIn()->name; print \IPS\Member::loggedIn()->email;
If I move my test.php file inside the forums folder, I'm able to get the name and email correctly.
Any thoughts on why I cannot get the details when they're outside the forums folder?
SSO Example Not Working
in Classic self-hosted technical help
Posted
Hi,
This is none of those things - it's a question specifically related to an example that you yourselves provide as documentation.