|
@@ -35,7 +35,8 @@ public class OAuth2Configurer extends AuthorizationServerConfigurerAdapter {
|
|
|
.scopes("service")
|
|
|
.autoApprove(true)
|
|
|
.authorizedGrantTypes("implicit", "refresh_token", "password", "authorization_code")
|
|
|
- .accessTokenValiditySeconds(365 * 24 * 3600);//todo gaodm 现改为365天,正式改为24小时过期
|
|
|
+ .accessTokenValiditySeconds(30 * 24 * 3600)
|
|
|
+ .refreshTokenValiditySeconds(30 * 24 * 3600);//todo gaodm 现改为365天,正式改为24小时过期
|
|
|
}
|
|
|
|
|
|
/**
|