Re: UAA: How to set client_credentials token grant type to not expire
Paul Bakare
Filip,
toggle quoted message
Show quoted text
Here's my client config: useraccount scope: clients.read oauth.approvals openid password.write tokens.read tokens.write uaa.admin resource_ids: none authorized_grant_types: authorization_code client_credentials password refresh_token authorities: scim.read scim.userids uaa.admin uaa.resource clients.read scim.write cloud_controller.write scim.me clients.secret password.write clients.write openid cloud_controller.read oauth.approvals access_token_validity: 315360000 autoapprove: true Gotten from `uaac clients` I really do not know what else I might be doing wrongly. Does `test_Token_Expiry_Time()` also cover for client_credentials grant type? I tried running the test with `./gradlew test -Dtest.single=org/cloudfoundry/identity/uaa/mock/token/TokenMvcMockTests` and placed debuggers in order to view the generated expiration time. Nothing was printed in the test results. On Wed, Jul 29, 2015 at 6:11 PM, Filip Hanik <fhanik(a)pivotal.io> wrote:
exp is expected to be 1753544877 when decoded. Unfortunately, this testfails, as exp reads 1438228276 |
|