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

code doesn't work with https://partner.archive-it.org/wasapi/v1/login #68

Open
ndushay opened this issue May 22, 2017 · 1 comment
Open
Labels
blocked prereqs for this ticket aren't done yet

Comments

@ndushay
Copy link
Contributor

ndushay commented May 22, 2017

The code as it is works with https://partner.archive-it.org/login as the login endpoint (authurl in settings), but will not work with https://partner.archive-it.org/wasapi/v1/login.

Naomi found it asking for Http Referer header to be filled out, and then

this site requires a CSRF cookie when submitting forms

if Http Referer header was set.

Naomi used a simple rest client with Firefox, and sending over the username and password with HTTP Basic Auth worked fine.

We asked in wasapi-ref-impl channel which login endpoint is correct, etc.

@ndushay ndushay added ready blocked prereqs for this ticket aren't done yet labels May 22, 2017
@ndushay
Copy link
Contributor Author

ndushay commented May 22, 2017

Jefferson says yeah, that's weird. possible redirect. I would authenticate at https://partner.archive-it.org/login` and then use /wasapi/v1/foo

@ndushay ndushay removed the ready label May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked prereqs for this ticket aren't done yet
Projects
None yet
Development

No branches or pull requests

1 participant