-
Notifications
You must be signed in to change notification settings - Fork 355
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
fix(authorization): set supertoken after authorization success #4026
fix(authorization): set supertoken after authorization success #4026
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options. (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) WalkthroughThe changes involve updates to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)packages/@webex/plugin-authorization-browser-first-party/src/authorization.js (1)
The change ensures that credentials are properly set in the Webex instance after successful QR code-based device authorization. This aligns with the standard authorization flow where credentials need to be persisted after successful authentication. Let's verify that the supertoken is being set consistently across all authorization flows: packages/@webex/plugin-authorization-browser-first-party/test/unit/spec/authorization.js (2)
The test properly verifies that credentials are set exactly once after successful QR code authorization. Also applies to: 621-621
The test ensures that credentials are still properly set even when the server requests a slow down in polling frequency. Also applies to: 726-726 Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
COMPLETES #SPARK-591039
This pull request addresses
https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-591039
by making the following changes
After the user is authorized successfully, a super token needs to be set so that the user can complete the QR code joining process
Change Type
The following scenarios were tested
< ENUMERATE TESTS PERFORMED, WHETHER MANUAL OR AUTOMATED >
I certified that
I have read and followed contributing guidelines
I discussed changes with code owners prior to submitting this pull request
I have not skipped any automated checks
All existing and new tests passed
I have updated the documentation accordingly
Make sure to have followed the contributing guidelines before submitting.
Summary by CodeRabbit
New Features
Bug Fixes
Tests