Adds possibility to authorize into Strapi Admin Panel with Auth0.
For more information on contributing please see the contrib message below.
These are the primary features that are finished or currently being worked on:
-
[x] Login\Register to the Admin Panel with Auth0
-
[x] Choose Admin Role for registered via such way
-
[x] Localization-friendly. Supported EN, UK and allows add custom translations. Localization key for roles
auth0-admin-login.role.$ROLE$
The purpose of this plugin is to have a easy way to login users via secured Auth0 or register if it's new.
There are no alternatives currently and customization of Strapi Admin side is quite hard.
This plugin basically should works with 4.x.x versions, but not tested
Strapi Version | Supported | Tested On |
---|---|---|
v3 | ❌ | N/A |
<=v4.16.2 | ❓ | N/A |
>=v4.16.2 | ✅ | May 2024 |
Install the plugin in your Strapi project or your Strapi plugin.
npm install strapi-plugin-auth0-admin-login
add the following config to your config/plugins.js
module.exports = () => {
return {
"auth0-admin-login": {
enabled: true,
},
};
};
npm run build
// or depend on your setup
strapi build
On the UI configuration page - http://localhost:1337/admin/plugins/auth0-admin-login
- Setup default role and enable toggle
- Copy
Auth0 Callback URL
and paste it toThe redirect URL to your front-end app
field on the Strapi Auth0 Provider Configuration page - http://localhost:1337admin/settings/users-permissions/providers
Please open issues before making a pull request so that we can talk about what you want to change for the best results. Issues are submitted to https://github.com/AndrewHaluza/strapi-plugin-auth0-admin-login/issues. Please provide as much information as possible about the bug or feature request.
MIT