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

OAuth: Sync GitHub OAuth user name to Grafana if it's set #45438

Merged
merged 1 commit into from
Mar 8, 2022

Conversation

pallxk
Copy link
Contributor

@pallxk pallxk commented Feb 16, 2022

What this PR does / why we need it:

Currently GitHub OAuth always uses user's GitHub login as Grafana login and name, but a name should be a name and GitHub user can have a name.

Which issue(s) this PR fixes:

Fixes #45437

Special notes for your reviewer:

Release notice breaking change

When user is using Github OAuth, GitHub login is showed as both Grafana login and name. Now the GitHub name is showed as Grafana name, and GitHub login is showed as Grafana Login.

@pallxk pallxk requested a review from a team as a code owner February 16, 2022 07:27
@pallxk pallxk requested review from sdboyer, marefr and kylebrandt and removed request for a team February 16, 2022 07:27
@CLAassistant
Copy link

CLAassistant commented Feb 16, 2022

CLA assistant check
All committers have signed the CLA.

@grafanabot grafanabot added area/backend pr/external This PR is from external contributor labels Feb 16, 2022
Copy link
Contributor

@ying-jeanne ying-jeanne left a comment

Choose a reason for hiding this comment

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

LGTM, i was thinking should be assign user name when it exist, if not we just leave it empty instead of setting login email. But it is not that important i would say, backward compatible behavior like in the PR probably is safer.

@ying-jeanne ying-jeanne added the no-backport Skip backport of PR label Mar 8, 2022
@ying-jeanne ying-jeanne added this to the 8.5.0 milestone Mar 8, 2022
@ying-jeanne ying-jeanne added add to changelog breaking change Relevant for changelog generation labels Mar 8, 2022
@ying-jeanne ying-jeanne merged commit 5fc5de8 into grafana:main Mar 8, 2022
@marefr marefr changed the title Sync GitHub OAuth user name to Grafana if it's set OAuth: Sync GitHub OAuth user name to Grafana if it's set Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
add to changelog area/backend breaking change Relevant for changelog generation no-backport Skip backport of PR pr/external This PR is from external contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub OAuth does not sync user name
4 participants