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: Remove accessTokenExpirationCheck feature toggle #79455

Merged
merged 4 commits into from
Dec 15, 2023

Conversation

mgyongyosi
Copy link
Contributor

@mgyongyosi mgyongyosi commented Dec 13, 2023

What is this feature?
This PR removes the accessTokenExpirationCheck feature toggle completely. The access token expiration check + refresh token fetching can be enabled in the OAuth provider settings using the previously introduced (v10.2) use_refresh_token config.

Why do we need this feature?

Who is this feature for?

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

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.

@mgyongyosi mgyongyosi marked this pull request as ready for review December 14, 2023 13:16
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
Copy link
Contributor

@kalleep kalleep left a comment

Choose a reason for hiding this comment

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

The code part looks good to me.

One suggestion would to cache the check here https://github.com/grafana/grafana/blob/main/pkg/services/authn/authnimpl/sync/oauth_token_sync.go#L66. So we are not doing additonal database call for every request but that can be done in a followup pr

@mgyongyosi mgyongyosi dismissed lwandz13’s stale review December 15, 2023 10:31

lwandz13 is OOO and Chris (from the docs team) has already approved it

@mgyongyosi mgyongyosi merged commit 9e5826f into main Dec 15, 2023
19 checks passed
@mgyongyosi mgyongyosi deleted the mgyongyosi/rm-access-token-exp-check-ft branch December 15, 2023 12:20
@summerwollin summerwollin modified the milestones: 10.3.x, 10.3.0 Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants