Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not authorized if access is assigned by a group #57

Closed
CameronGo opened this issue Oct 4, 2018 · 4 comments
Closed

Not authorized if access is assigned by a group #57

CameronGo opened this issue Oct 4, 2018 · 4 comments
Assignees

Comments

@CameronGo
Copy link

I'm having a problem where users get an unauthorized error when trying to login with AzureAD credentials if I assign a group to the AzureAd application. If I assign the user's account to the app directly they can access it without an issue. When the unauthorized error occurs, this is the event recorded in the Signin failure for the app in Azure AD:

Sign-in error code: 50105
The signed in user is not assigned to a role for the signed in application. Assign the user to the application. For more information: https://docs.microsoft.com/en-us/azure/active-directory/application-sign-in-problem-federated-sso-gallery#user-not-assigned-a-role.

I'm running community edition of SonarQube v7.3 and the 1.0 version of the plugin. Any idea why this is happening?

@hkamel hkamel self-assigned this Oct 4, 2018
@hkamel
Copy link
Owner

hkamel commented Oct 4, 2018

Thanks @CameronGo for reporting this, I'm not sure if the scenario is supported or not but let me investigate from my side. we are also working on a release that is compatible with SonarQube v7.3, the current version of the plugin has some known compatibility issues.

Please check #40

@ggciteo
Copy link

ggciteo commented Jun 17, 2020

Same here (or almost) : aad groups are not well mapped.
The use (me, for example) belongs to aad groups, and this group has admin rights (and the user itself does not have).
When I log in, I belong to no group.
I try to put me in the sonar groupe that have the same name as the aad group.
I log out and log in : i'm not in any group anymore.

@srvrguy
Copy link
Collaborator

srvrguy commented Jun 18, 2020

Based on what you wrote, I think you have a different issue. This issue is about restricting login access by adjusting the requirement for user assignment and the users and groups access level.

It sounds like you're talking about the group sync feature. To use group sync, you need to do a bit more setup, which is documented at https://github.com/hkamel/sonar-auth-aad/wiki/Group-Sync. If you have this done and things are still not working, please open a new issue and we can try to troubleshoot.

@srvrguy
Copy link
Collaborator

srvrguy commented Nov 11, 2022

Issue is stale. Closing. If it persists in the latest release, please open a new issue.

@srvrguy srvrguy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants