- Notifications
You must be signed in to change notification settings - Fork1k
feat: add best effort attempt to revoke oauth access token in external auth provider#19775
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPage.tsx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
e0c6a5e
to8b82266
Compare8b82266
to3bdda1f
CompareThere 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.
Backend review
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.
78554eb
to93f15d9
Compare93f15d9
toa14d39f
Comparerequire.Error(t,err) | ||
require.Contains(t,err.Error(),"token validation failed") |
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.
You can condenserequire.Error(); require.Contains(t, err.Error(), msg)
intorequire.ErrorContains(t, err, msg)
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.
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.
Backend LGTM
site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPage.tsx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPage.tsx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPage.tsx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
site/src/pages/UserSettingsPage/ExternalAuthPage/ExternalAuthPage.tsx OutdatedShow resolvedHide resolved
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.
frontend looks much better! thanks
439b041
intomainUh oh!
There was an error while loading.Please reload this page.
CODER_EXTERNAL_AUTH_0_TYPE=github | ||
CODER_EXTERNAL_AUTH_0_CLIENT_ID=xxxxxx | ||
CODER_EXTERNAL_AUTH_0_CLIENT_SECRET=xxxxxxx | ||
CODER_EXTERNAL_AUTH_0_REVOKE_URL=https://api.github.com/applications/<CLIENT ID>/grant |
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 instead inherit this automatically iftype=github
.
We use the type to set defaults for known provides.
Uh oh!
There was an error while loading.Please reload this page.
Solves#15575
Adds OAuth access token revocation when unlinking external auth provider. Due to revocation not being consistently implemented by providers this is only best effort attempt. Unsuccessful revocation won't influence link removal.