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

Auth: Use PKCE by default (If OAuth provider supports PKCE) #68095

Merged
merged 1 commit into from
May 12, 2023

Conversation

arukiidou
Copy link
Contributor

@arukiidou arukiidou commented May 9, 2023

What is this feature?

  • Use PKCE by default (If Oauth provider supports)
    • Add use_pkce = true to defaults.ini
    • Add use_pkce = true to sample.ini

Why do we need this feature?

Who is this feature for?

  • Users who use an Oauth provider

Which issue(s) does this PR fix?:

Special notes for your reviewer:

  • It is recommended that this be done during a major release.

  • suggest labels

  • You can fallback to the previous behavior by setting environment variables

    • GF_AUTH_AZUREAD_USE_PKCE: false
    • GF_AUTH_GITLAB_USE_PKCE: false
    • GF_AUTH_GOOGLE_USE_PKCE: false
    • GF_AUTH_OKTA_USE_PKCE: false
  • Github and Generic should not be changed yet(May not support PKCE).

screenshots(gitlab)

  • if GF_AUTH_GITLAB_USE_PKCE not set, then use_pkce = true(default)

image

screenshots(okta)

  • set GF_AUTH_OKTA_USE_PKCE: false, then use_pkce = false(override)

image

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
@arukiidou arukiidou requested a review from torkelo as a code owner May 9, 2023 13:50
@grafanabot grafanabot added the pr/external This PR is from external contributor label May 9, 2023
@Jguer Jguer requested review from a team, IevaVasiljeva and danielkenlee and removed request for a team May 9, 2023 14:09
@arukiidou arukiidou changed the title Auth: Use PKCE by default (If OAuth provider supports) #68073 Auth: Use PKCE by default (If OAuth provider supports PKCE) #68073 May 9, 2023
@arukiidou arukiidou changed the title Auth: Use PKCE by default (If OAuth provider supports PKCE) #68073 Auth: Use PKCE by default (If OAuth provider supports PKCE) May 9, 2023
@IevaVasiljeva IevaVasiljeva requested review from eleijonmarck and removed request for IevaVasiljeva May 9, 2023 15:19
Copy link
Contributor

@mgyongyosi mgyongyosi left a comment

Choose a reason for hiding this comment

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

Thanks @arukiidou for this PR. I tested it and it is working properly! 💯

@mgyongyosi mgyongyosi modified the milestone: 10.1.x May 12, 2023
@mgyongyosi mgyongyosi merged commit f79654f into grafana:main May 12, 2023
26 checks passed
@arukiidou arukiidou deleted the chore/use-pkce branch May 12, 2023 12:14
ryantxu pushed a commit that referenced this pull request May 16, 2023
OAuth: change use_pkce = true to defaults.ini/sample.ini #68073

Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
@ricky-undeadcoders ricky-undeadcoders modified the milestones: 10.1.x, 10.1.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auth: Use PKCE by default (If OAuth provider supports PKCE)
5 participants