Jump to content

Implementing SSO - example returns random string?

Go to solution Solved by Rick van Biljouw,

Recommended Posts

  • Solution

Hi all,

I'm trying to write a quick script on my site to expose some details about the currently logged in user, based on the active session, and it's been a bit of a struggle so far.

Using the following this piece of documentation: https://invisioncommunity.com/developers/docs/members-authentication/developing-single-sign-on-sso-integration-r65/

With the sample code that's there I'm getting nothing but a randomly generated string as a response where I'm expecting the user's display name.

I've tried exposing different variables, such as member_id, member_group_id and email all of which print a blank.

Any ideas what the issue could be/where to start looking?



Edit: Damn 🤦‍♂️ Just as I hit post, I found there was a stray session_start() in one of my includes resetting the session. Mystery solved.

Edited by Rick van Biljouw
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...