-
Notifications
You must be signed in to change notification settings - Fork 231
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
Decouple Credentials Manager storage from SimpleKeychain [SDK-2936] #551
Conversation
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.
The protocol methods need some changes to make sure they follow the API Guidelines.
Co-authored-by: Rita Zerrizuela <zeta@widcket.com>
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.
LGTM
@@ -5,10 +5,42 @@ import JWTDecode | |||
import LocalAuthentication | |||
#endif | |||
|
|||
/// Generic storage API for storing credentials | |||
public protocol CredentialsStorage { |
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.
It's fine for it to be on the same file as the Credentials Manager
Changes
Create a protocol that contains the storage methods used by the Credentials Manager and add an extension to A0SimpleKeychain to have it implement that protocol. Then ensure the storage parameter has that protocol as its type instead of A0SimpleKeychain.
Wasn't sure where to put the protocol and extension...
Testing
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.
Checklist