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

Add support for SRP Apple login #393

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Add support for SRP Apple login #393

merged 3 commits into from
Oct 30, 2024

Conversation

MattKiazyk
Copy link
Contributor

@MattKiazyk MattKiazyk commented Oct 29, 2024

Apple switched up their login to now use a Secure Remote Password type of algorithm. This add support for it, so a user can login properly.

Fixes #388

Copy link

@tsdevshop tsdevshop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add any tests for this new flow? Similar to those in the Xcodes.app repo

Sources/XcodesKit/Environment.swift Show resolved Hide resolved
@spadafiva
Copy link
Contributor

@MattKiazyk , I've run this locally to download the 16.2 Beta and it worked for me

Here's what I did:

swift build -c release
.build/release/xcodes install 16.2 Beta

I think this should have tested the flow that you changed, right?

Copy link
Contributor

@spadafiva spadafiva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix is working for me and using the SRP login! Thanks @MattKiazyk

Edit: I have not validated the implementation aside from checking that it works. Happy to compare to a reference implementation or other documentation if you have a link/resource for me to compare to though!

@MattKiazyk MattKiazyk changed the title fix: add support for SRP Apple login Add support for SRP Apple login Oct 30, 2024
@MattKiazyk MattKiazyk merged commit 6a619e7 into main Oct 30, 2024
2 checks passed
@MattKiazyk MattKiazyk deleted the matt/supportSRPLogin branch October 30, 2024 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppleID not recognized; Invalid JSON
3 participants