fixed SEB client access token expire.
This commit is contained in:
parent
289078f4fd
commit
3e6efd3ccf
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue