authProvider from the package and use it as-is with React-Admin
See the official React-Docs about authentication for more details.
You will also need to include the package-specific translations messages in React-Admin's
By default your app will be accessible to anonymous users.
If you wish to force all users to login, you can pass a
allowAnonymous: false param to the auth provider.
If you only want certain types of users to access your app, you can pass a
checkUser function to the authProvider.
This function receives user data and must return true or false, depending on whether the user is granted access or not.
checkUserfunction is also available to any of your components using the React-Admin's
If you want to check permissions based on WebACL, you need to provide additional parameters to the authProvider.
Additionally, you should use the
<ShowWithPermissions /> and
<EditWithPermissions /> components instead of React-Admin's default
<Show /> and
<Edit /> components.
This will hide the Create, Edit and Delete buttons to users who are not allowed to do these actions, and show a Permissions button to users who have
acl:Control over a resource or a container.