Skip to main content
To integrate Auth0 with a machine-to-machine (M2M) application, you must first register your app with Auth0 using the . These apps may include non-interactive apps, such as command-line tools, daemons, IoT devices, or services running on your back-end. M2M apps are linked to an API and its permissions or 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 registration. If you want to authorize your application to access only the Auth0 , you do not need to register a separate API; the Management API is pre-populated for you. To integrate Auth0 with a machine-to-machine (M2M) application, you must first register your app with Auth0 using the Auth0 Dashboard.
  1. Go to Dashboard > Applications > Applications and click Create Application.
  2. Enter a descriptive name for your application, select Machine to Machine Applications, and click Create.
  3. Select the API you want to be able to call from your application.
  4. Each M2M app that accesses an API must be granted a set of permissions (or scopes) that should be granted by the authenticated user. To learn how to add permissions, see Add API Permissions. Select the Permissions that you want to be issued as part of your application’s access token, and click Authorize.
    Use the update:client_grants and create:client_grants scopes with only high-privileged applications, as they allow the client to grant further permissions to itself.
    Once the new application is created, you can configure Application Settings which includes the following tabs: To learn more, read Application Settings.

Next steps

Once you have registered and configured your application, some common next steps are:
  • Configure an identity provider connection and enable it for your application (if needed for your use case).
  • Modify your app code to use your Auth0-registered application. See our Auth0 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, and more.
  • Use Auth0 APIs.
    • The Authentication API handles all primary identity-related functions (for example, login, logout, and 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).

Learn more