Token Expiration Policy - OAuth Authentication
The expiration policy for OAuth tokens is controlled by CAS settings and properties. Note that while access and refresh tokens may have their own lifetime and expiration policy, they are typically upper-bound to the length of the CAS single sign-on session.
OAuth Codes
The following settings and properties are available from the CAS configuration catalog:
cas.authn.oauth.code.number-of-uses=1
Number of times this code is valid and can be used. |
cas.authn.oauth.code.remove-related-access-tokens=false
Remove the related access tokens when trying to use a code which is expired or no longer exists. |
cas.authn.oauth.code.storage-name=oauthCodesCache
The storage object name used and created by CAS to hold OAuth codes in the backing ticket registry implementation. |
cas.authn.oauth.code.time-to-kill-in-seconds=30
Duration in seconds where the code is valid. |