MrSwitch/hello.js

Instagram Login with Wrong Credentials

Open

#540 ouverte le 13 févr. 2018

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (557 forks)batch import
help wanted

Métriques du dépôt

Stars
 (4 630 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Logging in with wrong credentials returns a 404 page with error: HTTP/1.1 404 Not Found

Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed. Go back to Instagram.

I would think that this error should be caught. This can be reproduced in the online demo.

Here's the HTTP request

POST https://www.instagram.com/accounts/login/?force_classic_login=&next=/oauth/authorize/%3Fclient_id%3Da3ab84f1ecd5476588fdf50b44fd60e6%26response_type%3Dtoken%26redirect_uri%3Dhttp%3A//mydomain/redirect.html%26display%3Dpage%26state%3D%257B%2522client_id%2522%3A%2522a3ab84f1ecd5476588fdf50b44fd60e6%2522%2C%2522network%2522%3A%2522instagram%2522%2C%2522display%2522%3A%2522page%2522%2C%2522callback%2522%3A%2522_hellojs_nprvib9%2522%2C%2522state%2522%3A%2522%2522%2C%2522redirect_uri%2522%3A%2522http%3A//mydomain/redirect.html%2522%2C%2522scope%2522%3A%2522public_content%2Cbasic%2522%2C%2522page_uri%2522%3A%2522http%3A//mydomain/%2522%257D%26scope%3Dpublic_content%2Bbasic HTTP/1.1
Host: www.instagram.com

csrfmiddlewaretoken=xxxx&username=yyyy&password=zzzz

Guide contributeur