The detailed setup process is described at this link https://auth0.com/docs/connections/enterprise/azure-active-directory/v2#create-an-enterprise-connection-in-auth0. We will not duplicate all the information as it can become obsolete. We have however captured the summary below just so that every time we don't need to read the full Auth0 documentation
ENTER A RELEVANT NAME. Like <tenant>-<environment> e.g. damen-accp
Enter general information for your connection.
Enter Client ID and Client Secret which we get after adding a new application in Azure AD
To use your new Azure AD enterprise connection, you must first enable the connection for both portal and api applications.
Now you're ready to test your connection.
Token configurations can be found under applications and selecting the portal application
The following configurations are needed
ID Token Expiry - This is the time after which id token will expire. To keep things consistent we can use 600 seconds as expiry i.e. same as Access Token expiry in Tradecloud Microservices
Refresh Token Behaviour - Select rotating as we want to change the refresh token and use a new one after the refresh token expires
Refresh Token Lifetime - We can keep it 86400 seconds i.e. 24 hours to keep it consistent with Tradecloud refresh token
Refresh token reuse interval - We can use 600 to keep some buffer for the access token exchange request to come in.