04/06/2023 03:17 PM
Hi Team,
I reviewed the forums post already - https://forums.saviynt.com/t5/identity-governance/api-access-for-sso-protected-saviynt/m-p/11846#M34... and understand that for OAuth 2.0 Refresh Token Authorization flow, I can login to the service account via UI and grab the refresh token and pass it to the API endpoint - {{url}}/ECM/oauth/access_token as per the documentation - https://documenter.getpostman.com/view/1797923/TVsvi7G2#74579b46-f6d9-4aff-add5-e60987093557
My query is what is the expiry of this refresh token?
-Siva
04/10/2023 03:01 PM
Hi @Sivagami
Please refer to the below snip of documentation...
Note: If grails.plugin.springsecurity.rest.refreshtoken.storage.jwt.expiration is set to some value in Config.groovy, refresh token will expire based on this config in api/login api. This will generate a new refresh token if another config - grails.plugin.springsecurity.rest.refreshtoken.new is set to true in Config.groovy. For blank or null, it will return the same Refresh token as passed in oauth/access_token api
Ref: https://documenter.getpostman.com/view/1797923/Uz5KmEhE#intro
04/12/2023 02:37 PM
Thanks @timchengappa for the reply. But, we are in v5.5 SP3.x and not in EIC. So, does the config you mentioned holds good for 5.5 as well ?
Note: If grails.plugin.springsecurity.rest.refreshtoken.storage.jwt.expiration is set to some value in Config.groovy, refresh token will expire based on this config in api/login api. This will generate a new refresh token if another config - grails.plugin.springsecurity.rest.refreshtoken.new is set to true in Config.groovy. For blank or null, it will return the same Refresh token as passed in oauth/access_token api
-Siva
04/12/2023 02:50 PM
Hi @Sivagami. Yes, it does.
04/25/2023 09:55 AM
@timchengappa - Thanks for the response. I logged a freshdesk ticket - https://saviynt.freshdesk.com/support/tickets/1619108 and the support team confirmed that there is no config currently set in config.groovy and they can set it to something like below based on our requirement.
grails.plugin.springsecurity.rest.refreshtoken.new=true
grails.plugin.springsecurity.rest.refreshtoken.storage.jwt.expiration= 28800
-Siva
04/25/2023 01:28 PM
Hello @Sivagami
Please refer to the documentaiton below and let me know if you have any fourther questions.
https://documenter.getpostman.com/view/1797923/SzzgAepY#a33841b2-7550-44b9-ac08-2901197f536b