Backend Module
The backend module was introduced with version 3.3 of this extension. You can configure the mapping from Auth0 data to TYPO3 properties. Also you can configure your Application data records. The module is located in the admin tools section and is available for backend admins / system maintainer only.
Application List
The application overview displays all Auth0 applications stored in your TYPO3 instance. It is possible to edit existing
applications or add new applications. Newly created applications are stored in the shown system folder. You can change the folder
by changing the TypoScript constant module.
. If this constant has no value, the
folder containing the users will be used (see: userStoragePage).
Roles To Groups
Configure fe_
and be_
mappings to match Auth0 roles. Simply edit an existing TYPO3 frontend or backend usergroup
and add the name of the matching Auth0 role to the data record. By default, the Auth0 roles are stored in the app_
property of the Auth0 user.
Note
Please note that only the configuration for activated services is shown. For example, if you have disabled the backend logon in the extension configuration, no role assignment for backend groups will be available.
Special Configuration
Depending on the activated services, there are some special configurations that can be made:
- Property
- Auth0 Key
- Data type
- string
- Default
roles
- Description
- The key (below the Auth0 application metadata) that contains the roles. The recommended default is "roles".
- Property
- Default Website Usergroup
- Data type
- integer
- Default
0
- Description
- This website usergroup is assigned to an user if none of his Auth0 roles is assigned to a website usergroup.
- Property
- Default Backend Usergroup
- Data type
- integer
- Default
0
- Description
- This backend user group is assigned to an user if none of his Auth0 roles is assigned to a backend user group.
- Property
- Backend-Admin Role
- Data type
- string
- Default
unset
- Description
- If a user has this Auth0 role, he becomes a TYPO3 backend administrator.
Property Mapping
Auth0 properties can be mapped to existing properties of TYPO3 backend or frontend users. You can configure this mapping in this
section of the module. Depending of user's TCA, different options may be available. It is not possible to use a TYPO3 property
twice. You can access the value of sub properties via dot syntax (e.g. address.
).
Note
Please note that only the configuration for activated services is shown. For example, if you have disabled the backend logon in the extension configuration, no property mapping for backend users will be available.
Add / Update Properties
You can add or update property mapping configuration for all kinds of Auth0 data (user root data, user metadata and application
metadata). The "User Metadata" will be retrieved from the user_
property of the user. You may not use the
user_
keyword for accessing this data (same for app_
).
Example:
If you want to map the value of the Auth0 property user_
to the TYPO3 property Zipcode
, you have
to create a new property mapping configuration within the "User Metadata" section:
Value Processing
Parsing functions (parseFunc) are used to change properties before they are persisted in the database.
These processing functions are available by default:
Function | Description |
---|---|
bool | Get the boolean value. |
negate bool | Negates a boolean value. |
strtotime | Parse about any English textual datetime description into a Unix timestamp. |