When SSOfy requests user data, it is either made by a login action or a simple user inquiry. You should choose based on which data to reveal on the scopes that the user picked during the authorization process.

You may craft your own implementation (recommended) by implementing the SSOfy\Laravel\Filters\Contracts\UserFilterInterface or extending the default implementation.

The default implementation has no restrictions and always exposes the following data:

  • id
  • hash
  • display_name
  • name
  • picture
  • profile
  • username
  • email
  • email_verified
  • phone
  • phone_verified
  • given_name
  • middle_name
  • family_name
  • nickname
  • website
  • gender
  • birthdate
  • address
  • location
  • zoneinfo
  • locale
  • custom_1
  • custom_2
  • custom_3
  • custom_4
  • custom_5
  • custom_6
  • custom_7
  • custom_8
  • custom_9

⚠️ Warning

Please consider if the user hasn't yet granted permission (unauthorized), the scopes array will be empty. In this case, you should always respect the users' privacy and only include the information which is applicable to public access.

As soon as you have your own implementation of the UserFilterInterface, make sure to switch to it in the User Data Settings section of the config/ssofy-server.php file.

ssofy Knowledge Base
At our core, we believe that staying up-to-date with the latest trends and advancements in Authentication and related areas is essential. That's why we take great pride in keeping you informed with the latest insights, updates, and news in this rapidly evolving landscape.

Do you need support?
SSOfy is by Cubelet Ltd.
Copyright © 2024 Cubelet Ltd. All rights reserved.