sbertix / Swiftagram

A modern Swift wrapper for Instagram Private API.
Apache License 2.0
247 stars 34 forks source link

Instagram AJAX Login #25

Closed sbertix closed 4 years ago

sbertix commented 4 years ago

The endpoint used in BasicAuthenticator appears to be unreachable, either temporarily or, more likely, due to a change in Instagram authentication process.

As for now, please default to WebViewAuthenticator for logging in.

MatoMA commented 4 years ago

Hi @sbertix, do you have any plans to support Android API? Web-Login-Encryption needs AES-GCM (SwCrypt) and Sealed Box (swift-sodium). Android-Login-Encryption needs RSA and AES-GCM ( all in SwCrypt, one dependence). Google & Apple want to block cookie usage in browser in the future. I think it is also a good idea to implement Android API as a backup auth method.

Ref: https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/ https://github.com/dilame/instagram-private-api/issues/1010

sbertix commented 4 years ago

Yep. I had started working on it on the authentication branch but I didn't have time to actually finish it.\ And I'm dropping support for Web login entirely: Android app only, to stay consistent with the rest of the codebase.

sbertix commented 4 years ago

I'm adding back 2FA support by the end of the day and then I'm pushing the new BasicAuthenticator into SwiftagramCrypto.\ Just a heads up in case you wanna implement it on SwiftyInsta or something @MatoMA 💪

sbertix commented 4 years ago

If you found this useful, please consider starring :star: this repo, or even sponsoring it :dollar:.
Even just $1 can help me maintain this.

Thank you for using Swiftagram.

vasilywang commented 4 years ago

@sbertix just donated $50

sbertix commented 4 years ago

@sbertix just donated $50

Really appreciated man. Thank you @jerry317.