Authenticating with Auth0

Humio can be configured to authenticate users through Auth0. Unless you have specific requirements, Auth0’s free tier is sufficient.

You can choose which Identity Providers (such as Google, GitHub and Facebook) you wish to allow for authentication.

GDPR Consideration
Auth0 keeps information about your users. This may require you to have a Data Processing Agreement with Auth0. If all you need is Google and GitHub, you can use Humio’s built-in support for these providers and avoid storing your users’ personal data with a third party provider.

Create a Humio application

You should create an Auth0 Regular Web Application specifically for Humio.

Once the application is created you will need to set up properties.

Find your application’s configuration

Under the application’s Settings page find:

-Client ID -Client Secret -Domain

We will need these for Humio’s settings. You will also have to set the AUTHENTICATION_METHOD option to auth0


See the configuration overview page on how to set these settings for your Humio cluster.

Setting the callback URL

In order to avoid CSRF attacks you must set the Allowed Callback URLs field to %PUBLIC_URL%/auth/auth0, such as, where %PUBLIC_URL% is the value of the Humio configuration option PUBLIC_URL.

Using Auth0 authentication for Humio requires that you set the PUBLIC_URL configuration option.

Mapping Auth0 roles

Using the Auth0 Authorization Extension you can define Auth0 roles and map them to Humio groups. For details on how groups work in Humio see Authorization.

The users/roles defined at top-level in the Auth0 dashboard do not work with this. This only works for users/roles defined inside the Auth0 authorization Extension, which is found in the left side Extensions menu item.

The Auth0 Authorization Extension requires an Auth0 Rule of its own installed to work, and additionally you need to create a rule to copy the roles into the token returned by Auth0 to Humio. This additional rule could look like this

// rule to copy user's roles into the returned token
function (user, context, callback) {
  context.idToken "" = user.roles;
  callback(null, user, context);

The attribute in this example is the user-configurable attribute that will hold the Auth0 roles. If you configure AUTH0_ROLES_KEY= (in Humio) and add the above Auth0 Rule in the Auth0 dashboard, the the assigned roles are transferred to humio in the AWT token and are made available to Humio. If AUTO_CREATE_USER_ON_SUCCESSFUL_LOGIN is not set, then users must already have been created inside Humio’s UI.


The property AUTO_UPDATE_GROUP_MEMBERSHIPS_ON_SUCCESSFUL_LOGIN controls that group membership rules in Humio are transferred upon login.

When deleting a user and/or changing access rights in Auth0, changes are not reflected until you log into Humio again.