hkamel / sonar-auth-aad

Azure Active Directory Authentication for SonarQube

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to add/update external_identity column

peshta opened this issue · comments

Hi, I have installed and configured everything regarded to the plugin, but since I am running Sonarqube version 8.7, I was about to complete the final upgrade step

UPDATE users SET external_identity = NEWID()
WHERE external_identity_provider = 'aad';

Once I run the query I get a result
Msg 207, Level 16, State 1, Line 1 Invalid column name 'external_identity'
I am running a windows instance of sonarqube with MS SQL Express running the database.

From what I have noticed I do not have the required column in my dbo.users

The result of all above is that I am able to enter credentials but I fail to login-in with following statement:

**Sorry, but we’re having trouble signing you in.

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: 'b4571e6d-e4ee-494e-81d7-6a792b884c1e'.**

My url is as required sonar.domainname.xyz/oauth2/callback/aad

Please assist

Thank you

I have resolved the issue by manually adding required columns to the table and then again run the upgrade required query.