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

Error in the Authentication section of the writeup #8

Open
rybern opened this issue Jul 19, 2018 · 4 comments
Open

Error in the Authentication section of the writeup #8

rybern opened this issue Jul 19, 2018 · 4 comments

Comments

@rybern
Copy link

rybern commented Jul 19, 2018

Hi,

I'm using your great wiki section to implement my own cloud API client, and I came across a couple of errors in the authentication section, both to do with what you call the "refresh" function. Both of these things are correct in your PHP example but not in the documentation.

Firstly, it should be a POST, not a GET.

Second, it doesn't just update the token, it always produces a new token, and it's always necessary to do. You don't seem to be able to use the token from the first API call ("device" token, per the URL) as the Bearer for the storage API, you have to "refresh" it to get a second token ("user" token per the URL). It isn't a matter of expiration.

Thanks for the excellent writeup!

@splitbrain
Copy link
Owner

I think you should be able to update the wiki yourself? Let me know if that doesn't work for some reason.

@Klap-in
Copy link

Klap-in commented Oct 24, 2018

(It looks to me that I cannot edit the wiki via GUI (you can git clone it...but that is cumbersome...))

@splitbrain
Copy link
Owner

Hmm, can you try again?

@Klap-in
Copy link

Klap-in commented Oct 24, 2018

Now it works! wiki is updated a bit.

@rybern do you apply your own changes?

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

3 participants