-
Notifications
You must be signed in to change notification settings - Fork 429
Saving scopes with rest of credentials #3941
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
wmathurin
commented
Oct 9, 2025
- token end point response contains scopes
- this value is now captured and saved with credentials
- tests were updated
- also showing scopes in dev info
Also showing scope in dev info
Clang Static Analysis Issues
Generated by 🚫 Danger |
| This property contains the list of OAuth scopes that were granted during authentication. | ||
| This property is set by the `SFOAuthCoordinator` after authentication has successfully completed. | ||
| @warning The setter for this property is exposed publicly only for unit tests. Client code should not set this property. |
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.
Could it go into SFOAuthCredentials+Internal.h for unit tests?
edit: I got confused by the comment, it's readonly?
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.
We have the same comments all over the file.
They are very old (seems to date from 61a9e26#diff-b278b72952b2a17bb9191443c53295ad580cf65c013cfacc1bc44d06e59acb82R100-R101).
I'll remove it since it is readonly in the public header and only readwrite in the internal header.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #3941 +/- ##
==========================================
+ Coverage 63.46% 63.48% +0.01%
==========================================
Files 250 250
Lines 22493 22506 +13
==========================================
+ Hits 14276 14288 +12
- Misses 8217 8218 +1
🚀 New features to boost your workflow:
|