oAuth valid token time

I run latest stable owncloud and desktop client. Since update to 10.7 my linux desktop wants to refresh oauth every hour. It opens browser and asks me to authorize.

Is there somewhere a setting where one can configure how long authorization token is valid?

access_token expires every 1h, this is hardcoded:
https://github.com/owncloud/oauth2/blob/master/lib/Db/AccessToken.php#L35

But this shouldn’t be a problem. A refresh_token should be used to create a new access_token for the desktop client.

There must be something wrong with my refresh token cause the new access token wont be created. I have to enter the password every hour.

BTW, is there a stetting that says how often a refesh may happen? Or will access token be renewed for ever?

refresh_token can only be used once. Every hour, you get a new access_token and a new refresh_token. access_token is used in every request. refresh_token is used again after the access_token expires.

Request URL:

POST /index.php/apps/oauth2/api/v1/token

Request body:

refresh_token=Nx1C3a7UFcXy66te478sEFphFQicgOFI5YcKJUO8ACRh5wuusK5RYDUNDrbTyu5d&grant_type=refresh_token

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.