Compose SSO for Azure Data Sources: Register an Application in Azure AD¶
Available from version 2021.4
Before configuring Compose SSO on the Alation server, register an app in Azure AD. This app will be used to authorize Compose to access Azure resources. From this app, Alation will need:
The redirect URL will be set up in this app, pointing to the OAuth callback endpoint within Alation.
You may need the assistance of an Azure AD admin with the following access level:
Ability to access the Azure AD tenant to register an app
Ability to register apps in Azure AD
Ability to manage users and groups in Azure AD
The app registration will authenticate users who exist in the Azure AD tenants of your organization. The token-identified principal, or the user initiating the OAuth flow, must have access to the data resources on Azure cloud.
Ability to create and grant permissions to use scopes. Some scopes may require superuser or root access.
Ability to add admin users to Azure SQL resources.
Ability to create users in the Azure SQL databases.
On the Alation server, the admin performing this configuration requires the Alation shell access on the host.
Register an App in Azure AD¶
Log in to Azure Portal.
Go to the Azure Active Directory homepage.
In the left-hand menu, click App registrations.
On the App registrations page, click New registration:
On the Register an application screen that opens, register your application:
Name: specify a name for your app registration, for example “Alation-Compose-OAuth”
Supported account types: select a value that is required by your environment, for example: Accounts in any organizational directory (Any Azure AD directory - Multitenant). Refer to Azure AD documentation for information about account types.
config_nameand its value are required by the Alation server. You can use the value
azure_conf, which is the Alation default or specify another name. If you provide your own value, note it down as you will need it later when configuring the Alation server. Note that you can edit this Redirect URI later if necessary.
You will be navigated to the properties page of your app registration. Note down the items listed below and store them safely. You will need to provide them when performing the OAuth configuration on the Alation server:
Application (client) ID
OAuth 2.0 authorization endpoint (v2)
OAuth 2.0 token endpoint (v2)
In the left-side menu, click Authentication.
On the Authentication screen, under Implicit grant and hybrid flows, select these checkboxes:
Access tokens (used for implicit flows)
ID tokens (used for implicit and hybrid flows)
In the left-hand menu, select Certificates and secrets.
On the Certificates and secrets page, click New client secret, specify a Description and select an expiration period. Click Add:
A new secret will be added to the Secrets table. Copy the secret value and store it safely. It will be required during the configuration on the Alation server.
In the left-hand menu, select API permissions.
On the API permissions page, click Add a permission, and then click APIs my organization uses.
In the search bar, type Azure SQL Database and then select it from the list.
On the Request API permissions screen for Azure SQL Database, click Delegated permissions. This will reveal the Select permissions search bar and the Permissions list.
Under Select permissions, select the user_impersonation checkbox. Click Add permissions:
You will be navigated back to the API permissions page. Click Add a permission again.
On the Request API permissions page, click APIs my organization uses again.
Search for Microsoft Azure Synapse Gateway. Then click it in the search results list.
For the Microsoft Azure Synapse Gateway API, select the permission workspaceartifacts.management and click Add permissions.
Back on the API permissions page, click Grant admin consent for <your domain> and confirm the consent:
The permissions status will change to Granted for <your_domain>:
Next, verify that Alation users who need access to Azure data sources from Compose exist in Azure AD and have been provided access to the databases. A user initiating the OAuth flow in Compose or the Catalog must have access to the protected resource within Azure.
Azure Synapse-based SQL Pools, SQL Servers, and SQL Databases require that an Azure AD user should be created on the database as a user from an external provider in order for these users to be able to initiate the SSO flow from Alation.
Check that all users who require access to Azure resources from Alation exist on the databases that they will need to access. A SQL Server admin can create users on the databases under this resource. For details on creating users on Azure databases, refer to Azure documentation, for example:
After you have registered the app, collected the required app information, and verified that users who need access from Compose exist in the Azure databases, configure SSO on the Alation side: Compose SSO for Azure Data Sources: Configure Compose SSO in Alation.