Failed to authenticate.
Closed this issue · 7 comments
Hey,
Followed the guide, everything works up to this point. Tried a clean clone/download and so forth. Nothing seems to be work? Any idea, logging or input?
Here is what your app needs to connect to hubiC:
client_id=lettersandnumbers
client_secret=lettersandnumbers
refresh_token=lettersandnumbers
[danny@localhost hubicfuse]$ hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other
Failed to authenticate.
[danny@localhost hubicfuse]$ sudo ./hubicfuse /mnt/hubic -o noauto_cache,sync_read,allow_other
Failed to authenticate.
[danny@localhost hubicfuse]$
How was the refresh_token generated?
Via the hubic_token script.
Hello,
Same thing for me, installed twice, and "failed to authenticate" when trying to mount...
Refresh_token generated by ./hubic_token script.
Hubicfuse with debug gives me :
root@vps239714:/var/log# hubicfuse -d /mnt/hubic -o noauto_cache,sync_read
debug_level = 0
get_extended_metadata = 0
curl_progress_state = 0
enable_chmod = 0
enable_chown = 0
==DBG 0 [2016-01-24 18:43:34.]:1971==Authenticating... (client_id = '[blablabla]')
==DBG 0 [2016-01-24 18:43:35.]:1971==HUBIC TOKEN_URL result: '{"expires_in":21600,"access_token":"[blablabla]","token_type":"Bearer"}'
==DBG 0 [2016-01-24 18:43:35.]:1971==HUBIC Access token: [blablabla]
==DBG 0 [2016-01-24 18:43:35.]:1971==HUBIC Token type : Bearer
==DBG 0 [2016-01-24 18:43:35.]:1971==HUBIC Expire in : 21600
==DBG 0 [2016-01-24 18:43:35.]:1971==CRED_URL result: '{
"error":"insufficient_scope",
"error_description":"scope is insufficient"
}
'
==DBG 0 [2016-01-24 18:43:35.]:1971==HUBIC cannot get json field 'token'
Failed to authenticate.
Looks like a FAQ at this stage :)
When running hubic_token you need to enter the values proposed if you agree (or change them). Just pressing enter does zero permission, hence the error!
Sorry, my fault !
I just hit "enter" during hubic_token procedure, i relaunch it with typing r, rw, etc and now it works...!
Shouldn't the script use defaults values when just pressing enter and a specific value like "0" be used to set "notuhing" ?
Also my bad!!
I was used to the proposed values being defaulted when nothing is entered! Works now :)