-
Notifications
You must be signed in to change notification settings - Fork 889
fix(coderd): pass oauth configs to site #8390
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
Conversation
DB: h.opts.Database, | ||
Optional: true, | ||
DB: h.opts.Database, | ||
OAuth2Configs: h.opts.OAuth2Configs, |
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.
Should we pass other extract api key configs, like DisableSessionExpiryRefresh
, too?
Edit: We also don't seem to be utilizing e.g. DisableSessionExpiryRefresh
in enterprise/coderd
, is this a bug?
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.
/ping @deansheather (ref: #5976)
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.
Yeah we should be setting that flag everywhere we use it, so this is definitely a bug.
For this specific case though, we can just set it to true
because it doesn't matter if loading the frontend doesn't refresh the token (because the frontend will make API requests after loading the 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.
Thanks @deansheather, added the always true and an accompanying comment.
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 is such a good find @mafredri 👍
Hi folks! This has been fixed and is in the v0.26.0 release. |
Fixes #8351