Emoncms is an open-source web application for processing, logging and visualising energy, temperature and other environmental data and is part of the OpenEnergyMonitor project.
Auth0 module has been developed by Carbon Co-op https://carbon.coop/
Log into emonCMS using Auth0 (single sign platform)
This module is released under the GNU Affero General Public License
Clone repository
git clone https://github.com/carboncoop/emonCMS_auth0 auth0
Install dependencies composer install
in settings.php add configure your Auth0 credentials:
$AUTH0_DOMAIN="your_auth_domain";
$AUTH0_CLIENT_SECRET="your_client_secret";
$AUTH0_CALLBACK_URL="https://your_emoncms_installation/"; // the rest of the URL is added by the Auth0 controller
$AUTH0_AUDIENCE="";
$AUTH0_STARTING_PAGE=""; // Page to redirect users after login
In your Auth0 application add https://your_emoncms_installation/auth0/callback
to your Allowed Callback URLs
To login visit https://your_emoncms_installation/auth0/login