- Notifications
You must be signed in to change notification settings - Fork905
fix: stop extending API key access if OIDC refresh is available#17878
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Conversation
473d5a4
toc430f42
Compare// Checking if the key is expired. | ||
// NOTE: The `RequireAuth` React component depends on this `Detail` to detect when | ||
// the users token has expired. If you change the text here, make sure to update it | ||
// in site/src/components/RequireAuth/RequireAuth.tsx as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Note thatRequireAuth.tsx
was modified to not have this string match dependency in#9442
Also includes some extra logging in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Two small suggestions but the change makes sense to me. I can approve if need be but I'd feel better if@Emyrk also took a look, so deferring approval for now.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This all makes sense to me 👍
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
c430f42
toe6f157c
Compare05131e2
to45df24d
Compare1a41608
intomainUh oh!
There was an error while loading.Please reload this page.
Merge activity
|
/cherry-pick release/2.22 |
/cherry-pick release/2.21 |
/cherry-pick release/2.20 |
Uh oh!
There was an error while loading.Please reload this page.
fixes#17070
Cleans up our handling of APIKey expiration and OIDC to keep them separate concepts. For an OIDC-login APIKey, both the APIKey and OIDC link must be valid to login. If the OIDC link is expired and we have a refresh token, we will attempt to refresh.
OIDC refreshes do not have any effect on APIKey expiry.
#17070 (comment) explains why this is the correct behavior.