Prerequisites:
The Problem:
This KB article goes over a specific issue that occurs when trying to implement OIDC authentication on a version of Ops Manager greater than 3.0.21.
Symptom of problem: You implement OIDC authentication on Ops Manager, however, when you browse to the Ops Manager Web UI URL, you are met with this error message:
Error: There was an error when authenticating against the external identity provider: Invalid issuer (https://login.microsoftonline.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/v2.0) for token did not match expected: https://login.microsoftonline.com
Resolution
The resolution for this issue lies in 2 steps:
If you have upgraded to Ops Manager 3.0.24 and have authenticated via OIDC by browsing to the Ops Manager dashboard URL, but see an error message similar to below, then you may have to implement step 2 of the resolution. If you do not see the error message below, then you do not have to move forward with implementing step 2.
"You do not have sufficient privileges to view this page. Please contact your administrator and ask them to assign you the appropriate privileges. You might try to log out of UAA and log in again. "
The error in the screenshot above could occur due to the OIDC application in Azure missing an app role or the name of the app role provided in the Ops Manager OIDC settings dashboard is not correct or doesn't match the app role name created in the Azure console.
We can add an app role by following these steps below:
STEP 1
Navigate to the App Registrations page in Azure console and select your OIDC application:
STEP 2
Go to the "App Roles" section of the OIDC application:
STEP 3
Create an App role: