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

API does not work, 401 error #109

Closed
Dreamsorcerer opened this issue May 31, 2015 · 4 comments
Closed

API does not work, 401 error #109

Dreamsorcerer opened this issue May 31, 2015 · 4 comments

Comments

@Dreamsorcerer
Copy link

Trying to use the API just gives me a 401 error now. I can repeat this behavior in the browser, if I access the URL, it does not log me in with the passed username:password but just shows me the login screen.

This is v1.0 on OC 8.0.3.

@BernhardPosselt
Copy link
Contributor

401 means unauthorized, using the browser to access the api won't work because the browser tries to use cookies which is forbidden because of csrf issues.

Can you try curl?

@Dreamsorcerer
Copy link
Author

That's interesting, curl does work, but I get 401 in my GNOME shell extension. Guess this is a bug with GNOME then?

@BernhardPosselt
Copy link
Contributor

Yes, probably related to their web implementation

@BernhardPosselt
Copy link
Contributor

Basically you must not use cookies ;)

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

No branches or pull requests

2 participants