Normalized User Profile
When a user logs in with SSO, each identity provider shares the user profile information in their own format. This adds complexity for the application developers to parse the user profile info and code related identity workflows. To make this seamless for developers, Scalekit normalizes the user profile info into a standard set of fields across all identity providers.
This means that you'd always receive the user profile payload in a fixed set of fields, irrespective of the identity provider and protocol you interact with. This is one of our foundational aspects of the Unified SSO solution.
Sample Normalized User Profile
{
9 items
}
email:
email_verified:
family_name:
given_name:
locale:
name:
picture:
sub:
identities:[
1 item
]
0:{
6 items
}
connection_id:
organization_id:
connection_type:
provider_name:
social:
provider_raw_attributes:{
16 items
}
aud:
email:
email_verified:
exp:
family_name:
given_name:
iat:
iss:
locale:
name:
nickname:
nonce:
picture:
sid:
sub:
updated_at:
}
}
]
}
Full list of User Profile attributes
Profile Attribute | Data Type | Description |
---|---|---|
sub | string | An identifier for the user, as submitted by the Identity Provider that completed the Single Sign-on. |
email | string | The user's email address. |
email_verified | boolean | True if the user's e-mail address has been verified as claimed by the Identity Provider; otherwise false. |
name | string | Fully formatted user's name |
family_name | string | The user's surname or last name. |
given_name | string | The user's given name or first name. |
locale | string | The user's locale, represented by a BCP 47 language tag. Example: 'en' |
picture | string | The user's profile picture in URL format |
identities | Array of Identity Objects | Array of all identity information received from the Identity Providers in the raw format |
Identity Object attributes
Identity Attribute | Data Type | Description |
---|---|---|
organization_id | string | Unique ID of the organization to which this user belongs to |
connection_id | string | Unique ID of the connection for which this identity data is fetched from |
connection_type | string | type of the connection: SAML or OIDC |
provider_name | string | name of the connection provider. Example: Okta, Google, Auth0 |
social | boolean | Is the connection a social provider (like Google, Microsoft, GitHub etc) or an enterprise connection. |
provider_raw_attributes | object | key-value map of all the raw attributes received from the connection provider as-is |
Notes
- The
sub
field is a concatenation of theconnection_id
and a unique identifier assigned to the user by the identity provider. - The identities array may contain multiple objects if the user has authenticated through different methods.
- The
provider_raw_attributes
object contains all original data from the Identity Provider, which may vary based on the provider and connection type.