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

[electron] require reauth after scopes change #276

Merged
merged 19 commits into from
Dec 16, 2024

Conversation

ben-polinsky
Copy link
Collaborator

@ben-polinsky ben-polinsky commented Dec 11, 2024

Previously, if a user altered the scopes in an application config authentication would fail until the user manually signed out and signed back in.

With this change, we store scopes from configuration alongside the token. If the scopes don't match, we delete the token and require re-authentication.

#270

starts moving away from parcel #277

@ben-polinsky ben-polinsky linked an issue Dec 11, 2024 that may be closed by this pull request
@ben-polinsky ben-polinsky mentioned this pull request Dec 13, 2024
@ben-polinsky
Copy link
Collaborator Author

@GytisCepk, @MichaelSwigerAtBentley, @anmolshres98 We are finally good here if you could review :) Apologies again for the bloat, but we're in a better place with integration tests.

Copy link
Contributor

@anmolshres98 anmolshres98 left a comment

Choose a reason for hiding this comment

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

mostly nit stuff. Great work!

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/create-release.yaml Outdated Show resolved Hide resolved
.pipelines/integration-test.yaml Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
packages/electron/package.json Outdated Show resolved Hide resolved
packages/electron/src/test/helpers/testHelper.ts Outdated Show resolved Hide resolved
packages/electron/src/main/TokenStore.ts Show resolved Hide resolved
packages/electron/src/main/TokenStore.ts Outdated Show resolved Hide resolved
@ben-polinsky ben-polinsky merged commit f39647a into main Dec 16, 2024
13 checks passed
@ben-polinsky ben-polinsky deleted the trash-token-after-scope-change branch December 16, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cached token used even after scope update, leading to insufficient permissions
3 participants