What is the default duration of the oauth refresh token in a spring application?
I want to know the default value, so we don't have to set the value ourselves or provide a parameterized ClientDetailsServiceConfigurer.
Found it in the source code after all:
The resource token is valid for 30 days:
private int refreshTokenValiditySeconds = 60 * 60 * 24 * 30; // default 30 days.
The accessToken is valid for 12 hours:
private int accessTokenValiditySeconds = 60 * 60 * 12; // default 12 hours.
I don't know from the top of my head but you can easily find out using the getAccessTokenValiditySeconds();
method as mentioned in the documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With