Commit 0eff982
committed
feat: Implement UseUserAccessGroup for iOS
This commit introduces the `UseUserAccessGroup` method in the Firebase
C++ Authentication SDK.
This method allows developers to specify a user access group for
keychain operations on iOS, enabling keychain sharing between apps
from the same developer. It wraps the `[FIRAuth useUserAccessGroup:error:]`
Objective-C method.
- Added `Auth::UseUserAccessGroup(const char* access_group)` to the
public API in `firebase/auth.h`.
- Implemented the method for iOS in `auth_ios.mm`, calling the
corresponding FIRAuth method and handling potential errors.
- Provided no-op stub implementations for Android and desktop platforms,
as the functionality is iOS-specific.
The method returns `kAuthErrorNone` on success or if it's a no-op on
non-iOS platforms. On iOS, it returns an appropriate `AuthError` if
the underlying Objective-C method reports an error.1 parent df805b2 commit 0eff982
File tree
4 files changed
+52
-0
lines changed- auth/src
- android
- desktop
- include/firebase
- ios
4 files changed
+52
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
673 | 678 | | |
674 | 679 | | |
675 | 680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
578 | 583 | | |
579 | 584 | | |
580 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
176 | 198 | | |
177 | 199 | | |
178 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
593 | 613 | | |
594 | 614 | | |
595 | 615 | | |
| |||
0 commit comments