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

Add role_attribute_path and role_attribute_path_strict to auth.gitlab #49147

Merged
merged 2 commits into from
Jun 3, 2022

Conversation

copolycube
Copy link
Contributor

What this PR does / why we need it:
adds 2 parameters from auth.generic to auth.gitlab module since they are not recognized when added as environment variables.

Which issue(s) this PR fixes:

The intention is to fix #48637

Fixes #48637

Special notes for your reviewer:

hoping that it's as simple as this, as suggested by https://community.grafana.com/t/grafana-gitlab-oauth-env-variable-not-recognized/65039/2 but I must acknowledge that I didn't go through the whole grafana code.

@CLAassistant
Copy link

CLAassistant commented May 18, 2022

CLA assistant check
All committers have signed the CLA.

@grafanabot grafanabot added the pr/external This PR is from external contributor label May 18, 2022
@zoltanbedi zoltanbedi requested review from a team, gamab and Jguer and removed request for a team May 23, 2022 10:14
@copolycube
Copy link
Contributor Author

relates to : #30025 #28892

@copolycube
Copy link
Contributor Author

Hello,
can I help in any way for those CI checks ?

@copolycube
Copy link
Contributor Author

copolycube commented May 26, 2022

Hello @papagian ,
If I'm right this change should help around your comment #28892 (comment)
I'm not sure about the process I have to go through to move it forward. Is there anything I can do on my end ?

@Jguer Jguer added this to the 9.0.0 milestone Jun 2, 2022
@Jguer Jguer added the no-changelog Skip including change in changelog/release notes label Jun 2, 2022
Copy link
Contributor

@gamab gamab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thanks for this! Right now role_attribute_path_strict is not implemented for gitlab but we'll tackle that in another PR. 🚢

@Jguer
Copy link
Contributor

Jguer commented Jun 2, 2022

Tested using docker as in the original issue. Can confirm it also works
👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport v9.0.x no-changelog Skip including change in changelog/release notes pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grafana gitlab oauth : GF_AUTH_GITLAB_ROLE_ATTRIBUTE_PATH not recognized (bug ?)
6 participants