# Auth0 Configuration

The User Manager Plugin utilises the Auth0 Management API in order to enable administration of your users from the Naviga Dashboard.

For the plugin to get access to the Auth0 API you need to create a API Client in the Auth0 Dashboard.

You can find the instructions on [this Auth0 documentation page](https://auth0.com/docs/applications/set-up-an-application/register-machine-to-machine-applications). The instructions guide you through how to set up a Machine to Machine application in your Auth0 dashboard. When the guide want's you to select something you can find the information you need to enter here:

* Descriptive name
  * Naviga Dashboard Plugin
* What API to call
  * Auth0 Management API
* Scopes
  * read:users
  * update:users
  * delete:users
  * create:users
  * read:users\_app\_metadata
  * update:users\_app\_metadata
  * delete:users\_app\_metadata
  * create:users\_app\_metadata
  * read:user\_idp\_tokens

When the Machine To Machine Application is Created, you need to go to the Settings tab on your new application. Scroll down to the setting named **Allowed Origins (CORS)**. In this box you will need to enter the URL to your Naviga Dashboard. The point of origin from where the Plugin will make it's requests to the Auth0 Management API.

When these things have been taken care of, you can add this newly created API Credentials to your Plugin configuration.

## Guide

Create a new application with the name `Naviga Dashboard Plugin` and type Machine to Machine Applications

Choose Auth Managment API and give following premissions

* read:users
* update:users
* delete:users
* create:users
* read:users\_app\_metadata
* update:users\_app\_metadata
* delete:users\_app\_metadata
* create:users\_app\_metadata
* read:user\_idp\_tokens

Then click Authorize

Go to settings and add following URLs to Allowed Origins (CORS)

```
https://*.dashboard.infomaker.io/, https://*.stage.dashboard.infomaker.io/, https://*.stage.us.dashboard.navigacloud.com, https://*.us.dashboard.navigacloud.com, https://*.stage.sy.dashboard.navigacloud.com, https://*.sy.dashboard.navigacloud.com
```

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.navigaglobal.com/user-manager-auth0/admin-guide/configuration/auth0-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
