Attributes offer the option to securely store, capture, view, search and share personal data. Its use is completely optional - as customers can choose to keep all personal data in an external location and use Quasr without any personal data.
Before we start let's tackle some important terminology:
Quasr supports 2 types of attributes:
| Name Click to sort ascending | Type Click to sort ascending | Subtype Click to sort ascending | Key Click to sort ascending | Format |
|---|---|---|---|---|
| Name | Standard | string:oidc1:name | name | Full name, string of max 100 characters |
| Given Name | Standard | string:oidc1:given_name | given_name | First name, string of max 100 characters |
| Family Name | Standard | string:oidc1:family_name | family_name | Last name, string of max 100 characters |
| Middle Name | Standard | string:oidc1:middle_name | middle_name | String of max 100 characters |
| Nickname | Standard | string:oidc1:nickname | nickname | String of max 100 characters |
| Preferred Username | Standard | string:oidc1:preferred_username | preferred_username | String of max 100 characters |
| Profile | Standard | url:oidc1:profile | profile | URL |
| Picture | Standard | url:oidc1:picture | picture | URL |
| Website | Standard | url:oidc1:website | website | URL |
| Standard | string:oidc1:email | email | Email address | |
| Gender | Standard | string:oidc1:gender | gender | String of max 100 characters |
| Birthdate | Standard | string:oidc1:birthdate | birthdate | Date in YYYY-MM-DD format |
| Time Zone | Standard | string:oidc1:zoneinfo | zoneinfo | Time zone, e.g. Europe/Paris |
| Locale | Standard | string:oidc1:locale | locale | Locale in en_US or en-US format |
| Phone Number | Standard | string:oidc1:phone_number | phone_number | Phone number in international E.164 format, e.g. +32470123456 |
| Formatted Address | Standard | string:oidc1:address:formatted | formatted | Full address on 1 line, string of max 100 characters |
| Street Address | Standard | string:oidc1:address:street_address | street_address | String of max 100 characters |
| Locality | Standard | string:oidc1:address:locality | locality | City or town, string of max 100 characters |
| Region | Standard | string:oidc1:address:region | region | State or province, string of max 100 characters |
| Postal Code | Standard | string:oidc1:address:postal_code | postal_code | String of max 100 characters |
| Country | Standard | string:oidc1:address:country | country | String of max 100 characters |
| String | Custom | string | Your choice | String of max 100 characters, or matching your own regular expression (RegEx) |
| Enum | Custom | string:enum | Your choice | One of a list of allowed values (config.list) |
| Number | Custom | number | Your choice | Integer |
| Boolean | Custom | boolean | Your choice | true or false |
| URL | Custom | url | Your choice | URL |
| JSON | Custom | json | Your choice | JSON object |
All attributes have following general configuration options:
label: string) - Textual label returned in the Authentication API and used on the Account UI.status: string) - The current status of the attribute. If disabled, the attribute can't be used and all claims will be locked.score: number) - Each attribute will have a score indicating what (security) score a user needs in order to see or provide claims via the Authentication API during signup or login. This allows shielding data from users that haven't sufficiently authenticated.value: string) - This is the key by which the attribute will be injected into an identity or access token. Please note that no uniqueness check is performed on the value hence any key collisions will result in some attribute being overwritten."{attribute_value}": "{claim_value}"config.unique: boolean) - This indicates whether each individual value (claim) for the attribute must be unique. So if you say for example that the email attribute is unique then only 1 account can have a specific email.config.internal: boolean) - This indicates that the attribute should only be used by internal accounts. For example an internal employee number, badge number or unit.config.restricted: boolean) - This indicates that the attribute can only be created by the system or an admin. Hence not allowing accounts to create their own. For example a loyalty tier or membership.config.regex: string) - This is only applicable to string attributes and is a regular expression (RegEx) to which any input must comply.config.case_sensitive: boolean) - This indicates whether input must be considered case sensitive when checking uniqueness (if the attribute must be unique) and in exact searches.config.require_validation_for_enablement: boolean) - This indicates whether any individual value (claim) must first be validated before it gets enabled. Defaults to true for the email and phone number attributes, and to false for all other attributes. Claims that need validation are created as PENDING, and can be enabled in 3 ways:email_verified. See Sources.updateClaim operation of the Management API or the update-claim tool of the Agent API by setting its status to ENABLED. Admins can also create a claim as ENABLED right away with createClaim or create-claim.PENDING, and they can only update claims that are already enabled or disabled. Hence without a bidirectional source to a factor that validates the value, their claims stay pending until an admin enables them or they expire. Enabling a claim also enables the enrollments linked to it through bidirectional sources.config.expires_in: string) - Only relevant if validation is required. Time indication for how long the system or admins have to validate a claim for enablement. A pending claim that isn't validated in time is deleted.s, secs or seconds.m, mins or minutes.h, hrs or hours.d or days.w or weeks.y, yrs or years.NONEconfig.singular: boolean) - This indicates whether accounts can only have a single claim for this attribute.