Token expiry issue with 6.8 version

Hi,error.txt (4.5 KB)

Today we have migrated 6.7.6 to 6.8.3 and gradle version from 3.4 to 4.3.1
i am generating the token with below setting in web-app.properties with expiry 1 month
cuba.rest.client.tokenExpirationTimeSec = 2592000

Here is the token generated

{
    "access_token": "c18bb6db-6ee6-42a0-bed9-5002bfc67725",
    "token_type": "bearer",
    "refresh_token": "de9dea91-a868-4f9d-a15e-57081d56fff8",
    "expires_in": 2592000,
    "scope": "rest-api"
}

but before one hour it is getting expired automatically. even if the EXPIRY column value is 2019-03-04 09:15:49.632 But error is not user friendly in the browser console. Attached log from browser console.

and what is this new parameter in the response

“refresh_token”: “de9dea91-a868-4f9d-a15e-57081d56fff8”,

how do we make use of it.

How do i set token expiry to longer time.

Hi,

CUBA “just” implements the OAuth2 logic here. A refresh token allows the client to refresh it’s access token. You might want to take a look at it here: Understanding Refresh Tokens

Bye
Mario

Hi!

Thank you for the bug report! It is really important and will be fixed soon! See https://youtrack.cuba-platform.com/issue/PL-10535