NSX-T UI Login Fails with "Must provide a matching redirect uri" after VCF 9.x Upgrade
search cancel

NSX-T UI Login Fails with "Must provide a matching redirect uri" after VCF 9.x Upgrade

book

Article ID: 435675

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Users experience a total loss of access to the NSX Manager UI following a VMware Cloud Foundation (VCF) 9.x upgrade. While local administrator access remains functional, authentication for VMware Identity Manager (vIDM) or Workspace ONE users fails with the following error:

Error Code: { "error": "invalid_request", "error_description": "Must provide a matching redirect uri." }

Example of the URL: https://xxxx/SAAS/auth/oauth2/authorize?client_id=myapp.dummycor.oauth_client.XXXXX-11f0-9931-XXXX&redirect_uri=https://172.X.X.X/v...

Observed Behavior:

  • Direct login via https://<NSX-Manager-IP>/login.jsp?local=true works correctly.
  • Login attempts via FQDN or standard IP access are rejected during the OAuth2 callback phase.

Environment

VMware NSX 4.x

Cause

 The "NSX Appliance" field within the NSX Authentication Provider settings is configured using a Fully Qualified Domain Name (FQDN), but the Identity Provider (vIDM) is expecting an IP-based redirect URI (or vice versa).

Resolution

To restore access, the redirect URI registration must be synchronized between the NSX Manager and the Identity Provider.

Step 1: Access the NSX Manager Locally

  1. Open a browser and navigate to the local login page: https://<NSX-Manager-IP>/login.jsp?local=true.
  2. Log in using a local admin account.

Step 2: Reconfigure the Authentication Provider

  1. Navigate to System > User Management > Authentication Providers.
  2. Locate the VMware Identity Manager configuration and click Edit.
  3. Update the NSX Appliance field to match the preferred access method (e.g., if using FQDN, ensure the Management IP or Cluster VIP FQDN is entered correctly).
  4. Save the changes. This action triggers NSX to re-register the correct redirect URIs with the Identity Provider.

Step 3: Client-Side Validation

  1. Ensure the NSX FQDN and IP are added to the local bypass/proxy settings on the client machine or jump host.
  2. Clear the browser cache and attempt to log in using the standard vIDM/SSO process.

Additional Information

If you intend to use FQDN-based access long-term, ensure the following:

  • Redirect URIs: The Redirect URIs in the Workspace ONE / vIDM console must match the NSX FQDN exactly.
  • Certificates:SSL certificates must include the **Subject Alternative Name (SAN)** for both the Management IP and the FQDN to prevent certificate mismatch errors.