Transformers

The DefaultUserTransformer shipped with the sdk transforms between your actual user data and the SSOfy's User Entity model.

You can either use the default implementation(recommended) or craft your own implementation by implementing the UserTransformer interface.

The default implementation maps the following columns by default:

  • id
  • hash
  • name
  • display_name
  • picture
  • username
  • email
  • email_verified
  • phone
  • phone_verified

Any other data within the metadata column (if exists) will also be filled in the entity automatically.

For custom column names, you may specify during the instantiation of the DefaultUserTransformer.

You may also specify additional columns be included in the additional object property of the final UserEntity.

ssofyKnowledge 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.