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.setScope(Collections.emptySet());
 | 
				
			||||||
                    baseClientDetails.setClientSecret(Utils.toString(pwd));
 | 
					                    baseClientDetails.setClientSecret(Utils.toString(pwd));
 | 
				
			||||||
                    baseClientDetails.setAccessTokenValiditySeconds(-1); // not expiring
 | 
					                    baseClientDetails.setAccessTokenValiditySeconds(-1); // not expiring
 | 
				
			||||||
 | 
					                    baseClientDetails.setRefreshTokenValiditySeconds(-1); // not expiring
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (log.isDebugEnabled()) {
 | 
					                    if (log.isDebugEnabled()) {
 | 
				
			||||||
                        log.debug("Created new BaseClientDetails for id: {}", clientName);
 | 
					                        log.debug("Created new BaseClientDetails for id: {}", clientName);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -87,6 +87,7 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
 | 
				
			||||||
        defaultTokenServices.setTokenEnhancer(jwtAccessTokenConverter);
 | 
					        defaultTokenServices.setTokenEnhancer(jwtAccessTokenConverter);
 | 
				
			||||||
        defaultTokenServices.setAccessTokenValiditySeconds(this.adminAccessTokenValSec);
 | 
					        defaultTokenServices.setAccessTokenValiditySeconds(this.adminAccessTokenValSec);
 | 
				
			||||||
        defaultTokenServices.setRefreshTokenValiditySeconds(this.adminRefreshTokenValSec);
 | 
					        defaultTokenServices.setRefreshTokenValiditySeconds(this.adminRefreshTokenValSec);
 | 
				
			||||||
 | 
					        defaultTokenServices.setClientDetailsService(this.webServiceClientDetails);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        endpoints
 | 
					        endpoints
 | 
				
			||||||
                .tokenStore(this.tokenStore)
 | 
					                .tokenStore(this.tokenStore)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue