Browse Source

Merge branch 'dev' into pre-production

pre-production
pref_mail@163.com 3 months ago
parent
commit
f5c0d9ab63
  1. 6
      blade-auth/src/main/java/org/springblade/auth/support/BladeJwtTokenEnhancer.java
  2. 2
      blade-gateway/src/main/resources/bootstrap.yml

6
blade-auth/src/main/java/org/springblade/auth/support/BladeJwtTokenEnhancer.java

@ -82,8 +82,10 @@ public class BladeJwtTokenEnhancer implements TokenEnhancer {
if (jwtProperties.getSingle()) {
OAuth2RefreshToken oAuth2RefreshToken = oAuth2AccessToken.getRefreshToken();
String refreshTokenValue = oAuth2RefreshToken.getValue();
JwtUtil.addRefreshToken(tenantId, clientId, userId, refreshTokenValue, accessToken.getExpiresIn() * 168);
if(oAuth2RefreshToken!=null){
String refreshTokenValue = oAuth2RefreshToken.getValue();
JwtUtil.addRefreshToken(tenantId, clientId, userId, refreshTokenValue, accessToken.getExpiresIn() * 168);
}
}
}

2
blade-gateway/src/main/resources/bootstrap.yml

@ -1,5 +1,5 @@
server:
port: 9999
port: 8888
spring:
cloud:

Loading…
Cancel
Save