OAuth Setup Guide for Azure AD Applications: Permission API Integration
This guide outlines the setup steps required to configure Azure AD applications for secure integration between z-PAX Login Service and the Permission API.
1. Create App Registration: Permission API
- Register a new Azure AD application named Permission API.
- Obtain the Application ID URI (typically in the format:
api://<permission-app-guid>).- This can be found or configured under the Expose an API tab in the Azure portal.
2. Define App Role
- In the Permission API app registration, navigate to App roles.
- Create an app role named:
- Name:
Zpax.Permission
- Name:
- Set Allowed Member Types to Application (enabling client credentials flow for service-to-service access).
3. Create App Registration: Zpax Login Service
Register another Azure AD application named Zpax Login Service.
4. Configure API Permissions for Login Service
- In the Zpax Login Service registration, open API Permissions.
- Click Add a permission > My APIs > Permission API.
- Under Application Permissions, add the
Zpax.Permissionrole. - Click Grant admin consent to approve permissions tenant-wide.
5. Generate Client Secret
- In the Zpax Login Service registration, navigate to Certificates & Secrets.
- Generate a new client secret.
- Record the secret securely — it will be required for token acquisition.
6. Information to Share with z-PAX Team
Provide the following details securely to the z-PAX integration team:
- Permission API Application ID URI:
api://<permission-app-guid> - Zpax Login Service Tenant ID
- Zpax Login Service Client ID
- Zpax Login Service Client Secret
7. Token Request by z-PAX
z-PAX will request an OAuth 2.0 token from Azure AD’s token endpoint:
POST https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
Content-Type: application/x-www-form-urlencoded
client_id=<client-id>&
client_secret=<client-secret>&
scope=api://<permission-app-guid>/.default&
grant_type=client_credentials