Authentication
By default, the application uses Identity SaaS. See AxaGuilDEv/react-oidc. The authentication is executed using a secure token which will also contain information about the logged user like: user data and roles.
In order to connect your new application to an identity server, the following configuration variables must be filled in .env
file:
A user can have one or more roles from the following list:
admin (tenant_admin)
user (tenant_user)
global_admin (only with multi-tenancy)
If you want to use another authentication service, the following files must be modified:
src/index.js
src/utils/auth
src/providers/AuthenticationProvider.js
src/components/routing/CustomRoute.js
â RECOMMENDATION! â
It is HIGHLY recommended to use <CustomRoute />
component when defining a new route. This is an enhanced version of the basic react-router-dom
's <Route />
component. In addition, it allows a more deeper customization of a route and by default it comes with the following configuration parameters:
isPrivate: if set to True, allows only the logged in users to access the route.
roles: a list of predefined roles. For more details see Authorization;
Last updated