-
Notifications
You must be signed in to change notification settings - Fork 429
Allowing no scopes to be provided #3943
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 13, 2025
- Not sending scope parameter in authorization url if no scopes defined
- Added test for scope parameter building method in SalesforceOAuthUnitTests.m
- Removed check for scopes in SFSDKAppConfig (class responsible for parsing bootconfig)
- Added new test suite BootconfigTests.swift
- Added check for id scope in SFIdentityCoordinator.m
- Added new helper class ScopeParser.swift
- Added new test suite ScopeParserTests.swift
- Moved some tests files that were in SalesforceSDKCore instead of SalesforceSDKCoreTests
- Not sending scope parameter in authorization url if no scopes defined - Added test for scope parameter building method in SalesforceOAuthUnitTests.m - Removed check for scopes in SFSDKAppConfig (class responsible for parsing bootconfig) - Added new test suite BootconfigTests.swift - Added check for id scope in SFIdentityCoordinator.m - Added new helper class ScopeParser.swift - Added new test suite ScopeParserTests.swift - Moved some tests files that were in SalesforceSDKCore instead of SalesforceSDKCoreTests
Clang Static Analysis Issues
Generated by 🚫 Danger |
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (63.63%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## dev #3943 +/- ##
==========================================
- Coverage 63.48% 63.01% -0.48%
==========================================
Files 250 249 -1
Lines 22506 22455 -51
==========================================
- Hits 14288 14150 -138
- Misses 8218 8305 +87
🚀 New features to boost your workflow:
|
| return NO; | ||
| } | ||
| if (self.oauthScopes.count == 0) { | ||
| [[self class] createError:error withCode:SFSDKAppConfigErrorCodeNoOAuthScopes message:[SFSDKResourceUtils localizedString:@"appConfigValidationErrorNoOAuthScopes"]]; |
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 appConfigValidationErrorNoOAuthScopes be removed from the strings file?
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.
Will do.
- Removed oauthScopes (it's now optional) from sample apps bootconfig
|
Failing test does not fail locally. |