OIDC for Microsoft Azure
What is Azure OIDC?
Azure OIDC (OpenID Connect) is a protocol that allows for secure user authentication in Azure Active Directory (Azure AD).
Buddy supports OIDC and Single Sign-On login for Azure Cloud integration.
This guide covers all the necessary steps to configure OIDC for Azure integration in Buddy.
OIDC provider configuration
- Open the login page in Azure Portal, sign in and go to Microsoft Entra ID.
- Switch to the App registration tab and click New registration:
Image loading...
- Enter the name, configure the type, and register the app.
On the app details view, copy the following:
- Application (client) ID
- Directory (tenant) ID
Image loading...
- On the application's view, go to Certificates & secrets and switch to the Federated credentials tab.
Click + Add credential and set the scenario to
Other issuer
. Next, fill in the details:- Issuer →
https://oidc.buddyusercontent.com
(US accounts) orhttps://eu-oidc.buddyusercontent.com
(EU accounts) - Subject identifier →
WORKSPACE_URL_HANDLE/TEMP_SUBJECT
- Name
- Audience
- Issuer →
Where:
WORKSPACE_URL_HANDLE
is the handle of your account URL →https://app.buddy.works/$WORKSPACE_URL_HANDLE
TEMP_SUBJECT
is a placeholder for the subject of the Buddy integration that we shall configure later
Warning
We strongly recommend setting the Audience to something more secure than the default value.
Image loading...
- Copy the Audience and click Add to save the credential.
Adding new role
- Look up Subscriptions in the Azure search.
Image loading...
- Go to your subscription, switch to the Access control (IAM) panel in the left menu, and click Add role assignment.
Image loading...
- Define the role permissions (e.g. Contributor). This should match the scope of access of the Buddy integration.
Image loading...
- Switch to the Members tab, click + Select members and look up the previously added application.
Image loading...
- Click Review + assign and wait for Azure to add assign the new role.
Buddy configuration
- Sign in to your Buddy account and go to Integrations.
- Click New integration and select Azure.
Define the integration details:
- enter the name and define the sharing scope
- switch the authorization method to OIDC
- paste the Application ID the Directory ID
- paste the audience from the OIDC identity provider (you can change the audience now if required)
Image loading...
- Click the button to finish configuration.
- Go to the integration details and copy the Subject.
- Switch back to Azure Active Directory and go to App registrations.
- Click the OIDC application that you added at the beginning and switch to the Certificates & secrets tab:
Image loading...
- Click the OIDC credential and replace
SUBJECT_TEMP
with the subject copied from the Buddy integration:
Image loading...
- Click Update to save changes.
Last modified on Sep 23, 2024