Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dictionary-octopus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ eastus
EBNF
echoerror
ecparam
edov
elbv2
elif
Elyton
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/docs/img/security/authentication/images/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/docs/img/security/authentication/okta/okta-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 54 additions & 3 deletions src/pages/docs/security/authentication/azure-ad-authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
modDate: 2025-06-01
modDate: 2026-11-27
title: Microsoft Entra ID authentication
description: Octopus Deploy can use Microsoft Entra ID authentication to identify users.
navOrder: 10
Expand Down Expand Up @@ -84,6 +84,13 @@ Support for OAuth code flow with PKCE was introduced in **Octopus 2022.2.4498**.
![Configure Logout URL](/docs/img/security/authentication/images/aad_logout_url.png)
:::

#### Add the email and xms_edov optional claims

Octopus rejects a sign-in unless the ID token has an email address and an `xms_edov` claim, which says whether the email's domain is verified by the user's home tenant. Entra ID only sends them as optional claims. See [Require Email Domain Verified Claim](#require-email-domain-verified-claim) for details.

1. Within your new App registration in Microsoft Entra ID, navigate to Manage > Token configuration.
2. Select **Add optional claim**, choose the **ID** token type, select `email` and `xms_edov`, then select **Add**.

#### Mapping Microsoft Entra ID users into Octopus teams (optional)

If you want to manage user/team membership via Microsoft Entra ID, you must configure Roles for your App. To add Role(s), you can create and assign a new App Role in the Azure Portal or directly edit the App's manifest.
Expand Down Expand Up @@ -227,9 +234,53 @@ Octopus.Server.exe configure --azureADIsEnabled=true --azureADIssuer=Issuer --az
Alternatively, these settings can be defined through the user interface by selecting **Configuration ➜ Settings ➜ Entra ID** and populating the fields **Issuer**, **ClientId**, **ClientSecret**, and **IsEnabled**. If you want to remove the ClientSecret you can use the delete button shown in the screenshot.

:::figure
![Settings](/docs/img/security/authentication/images/aad-azure-ad-settings.png)
![The Entra ID settings page in Octopus, showing Require Email Domain Verified Claim turned on](/docs/img/security/authentication/images/aad-azure-ad-settings.png)
:::

### Require Email Domain Verified Claim

**Require Email Domain Verified Claim** rejects a sign-in unless the ID token has an email address and an `xms_edov` claim, which says whether the email's domain is verified by the user's home tenant. It's on by default.
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved

Entra ID only sends `email` for users who have an email address, so while the setting is on, a user without one can't sign in, rather than signing in with their UPN. Check that your users have an email address before you turn it on.

Entra ID doesn't send `email_verified`, so the Entra ID provider has no **Require Email Verified Claim** setting. An `email_verified` or `xms_edov` claim that is present but isn't `true` is always rejected, whatever the setting.

#### Upgrading Octopus

When you upgrade, **Require Email Domain Verified Claim** is turned off if the Entra ID provider is enabled and has a **Client ID**, so existing sign-ins keep working if your app registration doesn't send the claims.

:::div{.warning}
While the setting is off, Octopus trusts an email address that has no verified claim. Turn the setting on once you've checked that your app registration sends the claim.
:::

#### Turn on the setting

:::div{.warning}
Make sure you have another way to sign in as an administrator, such as a [Username and password](/docs/security/authentication/username-password) administrator. If the claims turn out to be missing, every Entra ID user is locked out, including administrators.
:::

1. [Add the email and xms_edov optional claims](#add-the-email-and-xms_edov-optional-claims) to your app registration.
2. Check that the claims are sent, by [inspecting the contents of the security token](#inspect-the-contents-of-the-security-token) for a test user.
3. Navigate to **Configuration ➜ Settings ➜ Entra ID** and turn on **Require Email Domain Verified Claim**, or run the following from a command prompt in the folder where you installed Octopus Server:

```powershell
Octopus.Server.exe configure --azureADRequireEmailDomainVerifiedClaim=true
```

#### Usernames of new users

While **Require Email Domain Verified Claim** is on, a new user's **Username** is their verified email address rather than their UPN.

#### Rejected sign-ins

When Octopus rejects a sign-in, the message names the missing claim and the setting that turns the check off. For example:

```text
User login failed: your identity provider didn't say whether it has verified your email address (no xms_edov claim). Ask your Octopus administrator to add the email and xms_edov optional claims to the Octopus app registration in Microsoft Entra ID, or to turn off Require Email Domain Verified Claim in Octopus.
```

Octopus records the attempt as a failed login.

### Assign app registration roles to Octopus teams (optional)

If you followed the optional steps to modify the App registration's manifest to include new roles, you can assign them to **Teams** in the Octopus Portal.
Expand Down Expand Up @@ -315,7 +366,7 @@ Sometimes the contents of the security token sent back by Microsoft Entra ID are
![ID Token](/docs/img/security/authentication/images/5866123.png)
:::

5. Octopus uses most of the data to validate the token, but primarily uses the **sub**, **email**, and **name** claims. If these claims are not present, you will likely see unexpected behavior.
5. Octopus uses most of the data to validate the token, but primarily uses the **sub**, **email**, and **name** claims. If these claims are not present, you will likely see unexpected behavior. While **Require Email Domain Verified Claim** is on, Octopus also needs the **xms_edov** claim, and rejects the sign-in without it.

### EntraID Users with 200+ security groups

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
modDate: 2024-12-10
modDate: 2026-11-27
title: Google Workspace authentication
description: Octopus Deploy can use Google Workspace authentication to identify users.
navOrder: 15
Expand Down Expand Up @@ -60,9 +60,46 @@ Octopus.Server.exe configure --googleAppsIsEnabled=true --googleAppsClientId=Cli
Alternatively these settings can be defined through the user interface by selecting **Configuration ➜ Settings ➜ GoogleApps** and populating the fields `Is Enabled`, `Hosted Domain`, `Client ID` and `Client Secret`.

:::figure
![Settings](/docs/img/security/authentication/images/google.png)
![The Google Apps settings page in Octopus, showing Require Email Verified Claim turned on](/docs/img/security/authentication/images/google.png)
:::

### Require Email Verified Claim

**Require Email Verified Claim** rejects a sign-in unless the security token has an email address and an `email_verified` claim. It's on by default. Google sends `email_verified` when Octopus asks for the `email` scope, which it does by default.

An `email_verified` claim that is present but isn't `true` is always rejected, whatever the setting.

#### Upgrading Octopus

When you upgrade, **Require Email Verified Claim** is turned off if the Google provider is enabled and has a **Client ID**, so existing sign-ins keep working if Google doesn't send the claim.

:::div{.warning}
While the setting is off, Octopus trusts an email address that has no verified claim. Turn the setting on once you've checked that Google sends the claim.
:::

#### Turn on the setting

:::div{.warning}
Make sure you have another way to sign in as an administrator, such as a [Username and password](/docs/security/authentication/username-password) administrator. If the claim turns out to be missing, every Google Workspace user is locked out, including administrators.
:::

1. Check that the claim is sent, by [inspecting the contents of the security token](#inspect-the-contents-of-the-security-token) for a test user.
2. Navigate to **Configuration ➜ Settings ➜ GoogleApps** and turn on **Require Email Verified Claim**, or run the following from a command prompt in the folder where you installed Octopus Server:

```powershell
Octopus.Server.exe configure --googleAppsRequireEmailVerifiedClaim=true
```

#### Rejected sign-ins

When Octopus rejects a sign-in, the message names the missing claim and the setting that turns the check off. For example:

```text
User login failed: your identity provider didn't say whether it has verified your email address (no email_verified claim). Ask your Octopus administrator to configure your identity provider to send the email and email_verified claims, or to turn off Require Email Verified Claim in Octopus.
```

Octopus records the attempt as a failed login.

### Octopus user accounts are still required

Even if you are using an external identity provider, Octopus still requires a [user account](/docs/security/users-and-teams/) so you can assign those people to Octopus teams and subsequently grant permissions to Octopus resources. Octopus will automatically create a [user account](/docs/security/users-and-teams) based on the profile information returned in the security token, which includes an **Identifier**, **Name**, and **Email Address**.
Expand Down Expand Up @@ -119,5 +156,5 @@ Perhaps the contents of the security token sent back by Google Workspace aren't
:::

5. Don't worry if jwt.io complains about the token signature, it doesn't support RS256 which is used by Google Workspace.
6. Octopus uses most of the data to validate the token, but it primarily uses the `sub`, `email`, and `name` claims. If these claims are not present, you will likely see unexpected behavior.
6. Octopus uses most of the data to validate the token, but it primarily uses the `sub`, `email`, and `name` claims. If these claims are not present, you will likely see unexpected behavior. While **Require Email Verified Claim** is on, Octopus also needs the `email_verified` claim, and rejects the sign-in without it.
7. If you are not able to figure out what is going wrong, please send a copy of the decoded payload to our [support team](https://octopus.com/support) and let them know what behavior you are experiencing.
4 changes: 3 additions & 1 deletion src/pages/docs/security/authentication/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2023-01-01
modDate: 2026-04-14
modDate: 2026-11-27
title: Authentication
description: Authentication options for Octopus Deploy including our internal provider, Active Directory, Microsoft Entra ID, Okta, and Google Workspace.
navOrder: 50
Expand Down Expand Up @@ -93,6 +93,8 @@ You can also specify the details for multiple logins for each user. For example,

When someone signs in to Octopus using an external authentication provider, Octopus will try to find their user account by looking for matching identifiers. It starts by looking for a matching identifiers from the external authentication provider, and will eventually fall back to match on email address.

For OpenID Connect providers, Octopus can require the email address to be verified by the identity provider. See the settings for [OpenID Connect](/docs/security/authentication/oidc-authentication#verified-email-claims), [Microsoft Entra ID](/docs/security/authentication/azure-ad-authentication#require-email-domain-verified-claim), [Okta](/docs/security/authentication/okta-authentication#require-email-verified-claim), and [Google Workspace](/docs/security/authentication/googleapps-authentication#require-email-verified-claim).

## Changing authentication providers

In some circumstances you may want to move from one authentication provider to another. The best way to do this is have a period of time where you enable both the new and old authentication providers.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2025-11-05
modDate: 2025-12-10
modDate: 2026-11-27
title: Configuring Microsoft Entra ID
description: How to configure Octopus Deploy and Microsoft Entra to authenticate and identify users with OpenID Connect authentication.
navTitle: Microsoft Entra ID
Expand All @@ -10,7 +10,7 @@ navOrder: 6

## Configure Microsoft Entra ID

[How to configure Microsoft Entra ID](/docs/security/authentication/azure-ad-authentication#configure-microsoft-entra-id)
[How to configure Microsoft Entra ID](/docs/security/authentication/azure-ad-authentication#configure-microsoft-entra-id), including [adding the email and xms_edov optional claims](/docs/security/authentication/azure-ad-authentication#add-the-email-and-xms_edov-optional-claims).

## Configure Octopus Server

Expand All @@ -28,5 +28,13 @@ navOrder: 6
Note that the value of **Client Secret** cannot be retrieved once set - it can only be changed or deleted
:::
- **Allow Auto User Creation** determines if Octopus Deploy should automatically create user accounts, or only allow authentication for users that already exist in Octopus Deploy.
- **Require Email Verified Claim** should be turned off, because Entra ID doesn't send `email_verified`.
- **Require Email Domain Verified Claim** should be turned on, so Octopus rejects a sign-in unless the security token has an email address and an `xms_edov` claim. While it's on, a new user's **Username** is their verified email address rather than the **Username Claim Type** value. See [Verified email claims](/docs/security/authentication/oidc-authentication#verified-email-claims).
2. Click **Save** to apply the changes.
3. If you sign out of Octopus Deploy, you should now see a new button on the login screen to authenticate with the OIDC provider.

You can also set the verified email settings from a command prompt in the folder where you installed Octopus Server:

```powershell
Octopus.Server.exe configure --genericOidcRequireEmailVerifiedClaim=false --genericOidcRequireEmailDomainVerifiedClaim=true
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved
```
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: src/layouts/Default.astro
pubDate: 2025-11-05
modDate: 2025-12-10
modDate: 2026-11-27
title: OpenID Connect authentication
description: Octopus Deploy can use OpenID Connect authentication to identify users.
navTitle: General
Expand Down Expand Up @@ -57,9 +57,70 @@ To use OIDC authentication with Octopus you will need to:
Note that the value of **Client Secret** cannot be retrieved once set - it can only be changed or deleted
:::
- **Allow Auto User Creation** determines if Octopus Deploy should automatically create user accounts, or only allow authentication for users that already exist in Octopus Deploy.
- **Require Email Verified Claim** rejects a sign-in unless the security token has an email address and an `email_verified` claim. It's on by default. Only turn it off if your identity provider doesn't send both.
- **Require Email Domain Verified Claim** rejects a sign-in unless the security token has an email address and an `xms_edov` claim. It's off by default. Turn it on for [Microsoft Entra ID](/docs/security/authentication/oidc-authentication/configuring-microsoft-entra), and turn off **Require Email Verified Claim**, which Entra ID doesn't send.
:::div{.hint}
While either setting is on, a new user's **Username** is their verified email address rather than the **Username Claim Type** value. See [Verified email claims](#verified-email-claims) for details, including what happens when you upgrade.
:::
2. Click **Save** to apply the changes.
3. If you sign out of Octopus Deploy, you should now see a new button on the login screen to authenticate with the OIDC provider.

## Verified email claims

Octopus can match a sign-in to an existing user by email address, and an email address your identity provider hasn't verified could belong to someone else. Two settings reject a sign-in unless the security token has an email address and a claim saying it's verified:
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved

| Setting | Claim | Default |
| --- | --- | --- |
| **Require Email Verified Claim** | `email_verified` | On |
| **Require Email Domain Verified Claim** | `xms_edov` | Off |

Most identity providers send `email_verified` when Octopus asks for the `email` scope, which it does by default. Check your identity provider's documentation. Microsoft Entra ID doesn't send `email_verified`, so for Entra ID turn on **Require Email Domain Verified Claim** and turn off **Require Email Verified Claim**. See [Configuring Microsoft Entra ID](/docs/security/authentication/oidc-authentication/configuring-microsoft-entra).

An `email_verified` or `xms_edov` claim that is present but isn't `true` is always rejected, whatever the settings.

### Upgrading Octopus

When you upgrade, **Require Email Verified Claim** is turned off if the OpenID Connect provider is enabled and has a **Client ID**, so existing sign-ins keep working if your identity provider doesn't send the claim. **Require Email Domain Verified Claim** stays off.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Could these pages say which Octopus version adds the settings? The server change isn't in any release branch yet (the latest is release/2026.3), so readers on current versions will look for settings they don't have, and "When you upgrade" doesn't say to which version. The same applies to the Upgrading Octopus sections on the Entra ID, Okta and Google Workspace pages.


:::div{.warning}
While the setting is off, Octopus trusts an email address that has no verified claim. Turn a setting on once you've checked that your identity provider sends the claim.
:::

### Turn on the settings
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved

:::div{.warning}
Make sure you have another way to sign in as an administrator, such as a [Username and password](/docs/security/authentication/username-password) administrator. If the claim turns out to be missing, every user of the provider is locked out, including administrators.
:::

1. Check that your identity provider sends the claim, by [inspecting the contents of the security token](#inspect-the-contents-of-the-security-token) for a test user. If it can't send the claim, you'll need to leave the setting off and accept the risk above.
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved
2. Navigate to **Configuration ➜ Settings ➜ OpenID Connect** and turn on the setting, or run the command for your identity provider from a command prompt in the folder where you installed Octopus Server.

For most identity providers:

```powershell
Octopus.Server.exe configure --genericOidcRequireEmailVerifiedClaim=true
```

For [Microsoft Entra ID](/docs/security/authentication/oidc-authentication/configuring-microsoft-entra):

```powershell
Octopus.Server.exe configure --genericOidcRequireEmailVerifiedClaim=false --genericOidcRequireEmailDomainVerifiedClaim=true
```
Comment thread
TerryAtOctopus marked this conversation as resolved.
Resolved

### Usernames of new users

While either setting is on, a new user's **Username** is their verified email address rather than the **Username Claim Type** value.

### Rejected sign-ins

When Octopus rejects a sign-in, the message names the missing claim and the setting that turns the check off. For example:

```text
User login failed: your identity provider didn't say whether it has verified your email address (no email_verified claim). Ask your Octopus administrator to configure your identity provider to send the email and email_verified claims, or to turn off Require Email Verified Claim in Octopus.
```

Octopus records the attempt as a failed login.

## Assign external groups or roles to Octopus teams (optional)

If you followed the optional steps to include role information as a claim, you can assign them to **Teams** in the Octopus Portal.
Expand Down Expand Up @@ -121,7 +182,7 @@ Perhaps the contents of the security token sent back by your identity provider a

![A screenshot of the JWT debugger](/docs/img/security/authentication/images/5866123.png)

5. Octopus uses most of the data to validate the token, but primarily uses the `sub`, `email` and `name` claims. If these claims are not present you will likely see unexpected behavior.
5. Octopus uses most of the data to validate the token, but primarily uses the `sub`, `email` and `name` claims. If these claims are not present you will likely see unexpected behavior. While **Require Email Verified Claim** or **Require Email Domain Verified Claim** is on, Octopus also needs the `email_verified` or `xms_edov` claim, and rejects the sign-in without it.
6. If you are not able to figure out what is going wrong, please send a copy of the decoded payload to our [support team](https://octopus.com/support) and let them know what behavior you are experiencing.

### Octopus user accounts are still required
Expand Down
Loading