Skip to content
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

Merged
merged 8 commits into from
Oct 29, 2024
Merged

Support SRP Login #640

merged 8 commits into from
Oct 29, 2024

Conversation

MattKiazyk
Copy link
Contributor

Big thanks to @abiligiri for figuring out the hard stuff

MattKiazyk and others added 8 commits October 18, 2024 09:55
- 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
@MattKiazyk MattKiazyk added the bugfix Fixes a bug label Oct 29, 2024
@MattKiazyk MattKiazyk merged commit 3a8722c into main Oct 29, 2024
2 checks passed
@MattKiazyk MattKiazyk deleted the matt/SRPLogin branch October 29, 2024 03:22
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")

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants