Boundary
Set up OIDC authentication for HashiCorp Boundary using Microsoft Entra ID as the identity provider.
Before you start
| Requirement | Detail |
|---|---|
| Entra ID access | Administrator on portal.azure.com |
| Boundary access | Access to the Boundary Admin Console with rights to create auth methods |
| Boundary address | Your Boundary controller address, referred to below as %BOUNDARY_ADDR% |
Three values are produced in Part 1 and consumed in Part 2: the client secret value, the application (client) ID, and the issuer URL.
Part 1: Entra ID configuration
1.1 Create the application
- Log in to
https://portal.azure.comas an administrator. - Select Enterprise applications from the sidebar, or search for it.
- Click + New application.
- Type
hashicorp boundaryin the search bar and select the HashiCorp Boundary result. - Confirm the name of your Boundary integration and click Create.
- Click Single sign-on in the left menu, then Go to application.
1.2 Configure authentication
- Click Authentication under the Manage sidebar.
- In the Web section, set the Redirect URI to your Boundary address followed by the callback path:
https://%BOUNDARY_ADDR%/v1/auth-methods/oidc:authenticate:callback - In the Front-channel logout URL, append
:3000to your Boundary URL:https://%BOUNDARY_ADDR%:3000 - Click Save.
1.3 Create the client secret
- Select Certificates & Secrets from the Manage sidebar.
- Click New client secret, fill out the description and expiry, and click Add.
- Copy the client Secret value and store it somewhere accessible.
1.4 Collect the application ID
- Return to the Overview view using the left menu.
- Copy the Application (client) ID.
1.5 Collect the issuer URL
- On the Overview page, click Endpoints.
- Copy the OpenID Connect metadata document value, up to and including
/v2.0. Discard the.well-known/openid-configurationsuffix.
The result follows the pattern https://login.microsoftonline.com/%TENANT_ID%/v2.0
Part 2: Boundary controller configuration
2.1 Create the auth method
- Log in to the Boundary Admin Console and navigate to Auth Methods.
- Select New and click OIDC.
- Fill out the fields:
| Field | Value |
|---|---|
| Name | For example, Azure |
| Description | Optional, for example Azure OIDC auth method |
| Issuer | The issuer URL from 1.5 |
| Client ID | The Application (client) ID from 1.4 |
| Client Secret | The secret value from 1.3 |
| Signing Algorithm | Set to RS256, then click Add |
| API URL Prefix | Your Boundary URL, for example https://%BOUNDARY_ADDR% |
- Click Save.
2.2 Activate the auth method
- Under the settings for the new auth method, open the state menu in the upper right of the page. It will read Inactive.
- Change the state to Public.
Troubleshooting
| Symptom | Check |
|---|---|
| Authentication redirects but fails at callback | The redirect URI in Entra ID does not exactly match the callback path |
| Client secret rejected | Secret ID copied instead of Secret value (1.3) |
| Issuer rejected | The metadata URL was copied in full. Trim it at /v2.0. |
| Auth method not offered at sign-in | The auth method is still Inactive or Private. Set it to Public (2.2). |
| Logout does not clear the session | Front-channel logout URL missing the :3000 suffix |
For anything not covered here, contact the SURF support team.
