What is vCenter
vCenter Server is the centralized management utility for VMware, and is used to manage virtual machines, multiple ESXi hosts, and all dependent components from a single centralized location. VMware vMotion and svMotion require the use of vCenter and ESXi hosts.
This requires authentik 0.10.3 or newer.
This requires VMware vCenter 7.0.0 or newer.
It seems that the vCenter still needs to be joined to the Active Directory Domain, otherwise group membership does not work correctly. We're working on a fix for this, for the meantime your vCenter should be part of your Domain.
The following placeholders will be used:
vcenter.companyis the FQDN of the vCenter server.
authentik.companyis the FQDN of the authentik install.
Since vCenter only allows OpenID-Connect in combination with Active Directory, it is recommended to have authentik sync with the same Active Directory.
Under Customization -> Property Mappings, create a Scope Mapping. Give it a name like "OIDC-Scope-VMware-vCenter". Set the scope name to
openid and the expression to the following
"domain": "<your active directory domain>",
If your Active Directory Schema is the same as your Email address schema, skip to Step 3.
Under Sources, click Edit and ensure that "authentik default Active Directory Mapping: userPrincipalName" has been added to your source.
Under Providers, create an OAuth2/OpenID provider with these settings:
- Redirect URI:
- Sub Mode: If your Email address Schema matches your UPN, select "Based on the User's Email...", otherwise select "Based on the User's UPN...".
- Scopes: Select the Scope Mapping you've created in Step 1
- Signing Key: Select any available key
Create an application which uses this provider. Optionally apply access restrictions to the application.
Set the Launch URL to
https://vcenter.company/ui/login/oauth2. This will skip vCenter's User Prompt and directly log you in.
This Launch URL only works for vCenter < 7.0u2. If you're running 7.0u2 or later, set the launch URL to
Login as local Administrator account (most likely ends with vsphere.local). Using the Menu in the Navigation bar, navigate to Administration -> Single Sing-on -> Configuration.
Click on Change Identity Provider in the top-right corner.
In the wizard, select "Microsoft ADFS" and click Next.
Fill in the Client Identifier and Shared Secret from the Provider in authentik. For the OpenID Address, click on View Setup URLs in authentik, and copy the OpenID Configuration URL.
On the next page, fill in your Active Directory Connection Details. These should be similar to what you have set in authentik.
If your vCenter was already setup with LDAP beforehand, your Role assignments will continue to work.