Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.

#Auth0 Dashboard Widget

Widget to show a dashboard about your users stats consuming the API provided by Auth0 Dashboard Backend

##How it works This widget can be separated in different sections. First, it provides different kind of ways to show your data. Second, it will connect all the widgets in order to allow cross filtering and data drill down. Finally, it uses an API to filter your users data.


All chart must register to the Auth0DasboardWidget which is the responsible of handling the chart events, calling the API to retrieve the fitered information and udpate the events.

var widget = new Auth0DasboardWidget(api_endpoint);

widget.on('loading', function(){
    document.getElementById('loading').className = "visible";
widget.on('loaded', function(){
    document.getElementById('loading').className = "";


  • The api endpoint is the one the widget will call to retrieve the information
  • The events loading and loaded are called before and after the api request is made
  • The register method is used to regist each chart to the widget

The Auth0DasboardWidget provides an event in order to make it easy to register the charts in case they are instantiated separately. You can listen to the event like this:

window.addEventListener('a0-dashboard-init', function (e) { 
    var map = new Auth0MapWidget({

Basic chart

This one will provide a simple pie or bar chart.

var age = new Auth0BasicChartWidget({
        selection_enabled: true,
        color_pattern:['#F39C12','#2ECC71','#3498DB','#9B59B6','#34495E','#F1C40F','#E67E22','#E74C3C', '#1ABC9C'],
        type: 'pie',
        data_processor: Auth0PieDataProcessor,
  • name: chart name
  • grouping_field: field it will use to show the data
  • selection_enabled: allow the user to select what will be user for filtering the data
  • color_pattern: colors used in the chart
  • type: C3js chart type
  • data_processor: how it will handle the data to be shown (Pie or Bar data processor)
  • wrapper_selector: where it will be shown

Map chart

It will show a map based on geolocated data

var map = new Auth0MapWidget({
  • map_styles: a way to customize the map style

TimeLine chart

This will show a line chart based on a timeline

Income chart

This is a multidimention chart based on parallel coordinates.

##API endpoint This widget needs an API in order to store the rates of the products. You can use if you don't have a backend and it is provided with the plugin.

In order to create your webtask, download the webtask code and follow this steps:

  • Follow the instructions to install the wt-cli tool and setup it for your Auth0 account.
  • Create the webtask used by the plugin to retrieve the information:
wt create dashboard_endpoint.js --no-merge --no-parse
  • Create the cronned webtask used to retriebe your users info and process it to allow the plugin query this information:
wt cron schedule -n dashboard-cron "*/30 * * * *" dashboard_cron.js -p "wptest-default" \
  --secret mongo_connection_string=mongo_connection_string \
  --secret \
  --secret app_token=app_token \
  --output url mfa-passwordless.js
- mongo_connection_string: This widget needs some place to store the users information. In this case it uses a Mongolab MongoDB database.
- domain: your account domain
- app_token: this should be a valid app_token, with `read:users` scope (you can generate one here!/Users/get_users)

Issue Reporting

If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.




This project is licensed under the MIT license. See the LICENSE file for more info.


A users dashboard for Auth0 accounts




No releases published


No packages published