cozy-labs / cozy-remotestorage

remotestorage server for cozy
16 stars 8 forks source link

401 Unauthorize #8

Open JbIPS opened 8 years ago

JbIPS commented 8 years ago

Hi,

I try to connect to the remoteStorage on my Cozy but each time I get a 401 Unauthorized response with a header WWW-Authanticate: "Bearer realm="remoteStorage" error="invalid_token""

My Authorization header looks like Bearer 098uoeiutnhu....... Is this correct? I try remoteStorage Browser to be sure, but got the same response.

Do you have any lead I can explore? Thank you

nono commented 8 years ago

Hello,

the cozy-remotestorage application is not maintained and only supports an old draft of the remotestorage specification (draft-dejong-remotestorage-01).

That said, the header looks correct. The spec said the format is the following:

Authorization: Bearer <access_token>

Did you try to look at the logs in /usr/local/var/log/cozy/*remotestorage*.log?

JbIPS commented 8 years ago

Thanks, I didn't though of looking the logs. But the err log is empty and in the stdout I just have some request logs like:

PERM RESULT =  [ '/*/:rw', '/public/*/:rw' ]                                    
[Wed, 20 Jul 2016 12:46:58 GMT] - GET /public/storage/ - 401 - 40.054 ms -  16  

401 again, but with permissions that should grant access... strange.

Is there plan to upgrade this app or has it been replace by another way to share files? Thank you