Configure Microsoft Entra ID
How to configure Microsoft Entra ID, including adding the email and xms_edov optional claims.
Configure Octopus Server
- Navigate to Configuration ➜ Settings ➜ OpenID Connect and populate the following fields:
- Enabled should be set to
Yes. - Role Claim Type is optional, but set this to
rolesif you want to automatically assign users to teams. - Username Claim Type set to
http.: / /schemas .xmlsoap .org /ws /2005 /05 /identity /claims /upn - Resource should be left unset.
- Scopes should be left as the default of
openid profile email. - Display Name can be used to customize the appearance of the button on the Octopus Deploy login screen. Use a name that your users will recognize for this identity provider.
- Issuer should be a URL like
httpswhere the: / /login .microsoftonline .com /GUID GUIDis a particular GUID identifying your Microsoft Entra ID tenant. This is the Directory (tenant) ID in the Azure App Registration Portal. - Client ID which should be a GUID. This is the Application (client) ID in the Azure App Registration Portal.
- Client Secret which should be a long string value. This is the Value of a client secret in the Azure App Registration Portal.
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_edovclaim. 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.
- Enabled should be set to
- Click Save to apply the changes.
- 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