fixed SEB client access token expire.

This commit is contained in:
anhefti 2022-05-18 10:29:55 +02:00
parent 289078f4fd
commit 3e6efd3ccf
2 changed files with 2 additions and 0 deletions

View file

@ -211,6 +211,7 @@ public class ClientConfigServiceImpl implements ClientConfigService {
baseClientDetails.setScope(Collections.emptySet());
baseClientDetails.setClientSecret(Utils.toString(pwd));
baseClientDetails.setAccessTokenValiditySeconds(-1); // not expiring
baseClientDetails.setRefreshTokenValiditySeconds(-1); // not expiring
if (log.isDebugEnabled()) {
log.debug("Created new BaseClientDetails for id: {}", clientName);

View file

@ -87,6 +87,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
defaultTokenServices.setTokenEnhancer(jwtAccessTokenConverter);
defaultTokenServices.setAccessTokenValiditySeconds(this.adminAccessTokenValSec);
defaultTokenServices.setRefreshTokenValiditySeconds(this.adminRefreshTokenValSec);
defaultTokenServices.setClientDetailsService(this.webServiceClientDetails);
endpoints
.tokenStore(this.tokenStore)