Register Machine-to-Machine Applications

Register Machine-to-Machine Applications

To integrate Auth0 with a machine-to-machine (M2M) application, you must first register your app with Auth0. This guide will show you how to register an M2M application using Auth0's Dashboard.

M2M applications are linked to an API and its scopes, which are selected from pre-defined values. Make sure you have already registered the associated API with Auth0 and defined scopes for the API before beginning this guide.

If you want to authorize your application to access only Auth0's Management API, you do not need to do anything; the Management API is pre-populated for you.

  1. Navigate to the Applications page in the Auth0 Dashboard, and click + Create Application.

  2. Enter a descriptive name for your Application, select Machine-to-Machine App, and click Create.

Select Application Name and Type

  1. Select the API you want to be able to call from your Application.

Select API

  1. Select the scopes you want to be issued as part of your Application's Access Token, and click Authorize.

Select Scopes

Once the new M2M Application is created, you will be redirected to the Application's settings. Available tabs include:

  • Settings: Shows all available settings for your application. By default, most of the settings will be created for you.
  • Quick Start: Shows all the available examples for M2M applications. It also shows you how you can call your API using various technologies. To learn how to accept and validate Access Tokens in your API, see our Backend/API Quickstarts.
  • APIs: Allows you to authorize additional APIs for use with your Application.

After creating your first application, you should set the environment for your tenant. Options include development, staging, or production.

Next Steps

Once you have registered and configured your Application, some common next steps are:

  • Configure a Connection and enable it for your Application

  • Modify your app code to use your Auth0-registered Application. See our quickstarts, where you'll find detailed instructions and samples for a variety of technologies. You'll also learn how to implement login and logout, handle your user sessions, retrieve and display user profile information, add Rules to customize your authentication flow, and more.

  • Call an API using our API Authorization feature set.

  • Use Auth0 APIs.

    • The Authentication API handles all primary identity-related functions (for example: login, logout, get user profile). Most users consume this API through our Quickstarts, the Auth0.js library, or the Lock widget. However, if you are building all of your authentication UI manually, you will have to interact with this API directly.

    • The Management API allows you to automate various tasks that can also be accessed via the Dashboard in Auth0 (for example: creating users, setting application grant types).