-
Notifications
You must be signed in to change notification settings - Fork 310
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
Support SRP Login #640
Support SRP Login #640
Conversation
- Switch to use https://github.com/adam-fowler/swift-srp with some modifications that are local - Pad g value to equal size of N while calculating clientProof - Use SHA256(plain-text-password) while computing key using PBKDF2 - Added a unit test with some sample values
- Use from https://github.com/abiligiri/swift-srp, version 1.1.0 This is based on latest from upstream with changes required - Remove local copy of swift-srp
SRP Login works now
products: [ | ||
// Products define the executables and libraries a package produces, and make them visible to other packages. | ||
.library( | ||
name: "AppleAPI", | ||
targets: ["AppleAPI"]), | ||
], | ||
dependencies: [], | ||
dependencies: [ | ||
.package(url: "https://github.com/xcodesOrg/swift-srp", branch: "main") |
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 might be better to depend on a particular commit rather than main
, as this could cause issues if swift-srp
introduces a change which is not compatible with the current app codebase.
Or does it make sense to package this up as a separate SRP package, something like icloud-srp
? I imagine this will be useful for other people who need to authenticate with Apple's iCloud servers in Swift.
Big thanks to @abiligiri for figuring out the hard stuff