|
@@ -234,7 +234,8 @@ public class CustomTokenServices implements AuthorizationServerTokenServices, Re
|
|
|
|
|
|
OAuth2Authentication authentication = tokenStore.readAuthentication(accessToken);
|
|
|
|
|
|
- if (StringUtils.equalsIgnoreCase("system", authentication.getOAuth2Request().getClientId())) {
|
|
|
+ if (StringUtils.equalsIgnoreCase("system", authentication.getOAuth2Request().getClientId())
|
|
|
+ || StringUtils.equalsIgnoreCase("qr_teacher", authentication.getOAuth2Request().getClientId())) {
|
|
|
int validitySeconds = getAccessTokenValiditySeconds(authentication.getOAuth2Request());
|
|
|
if (validitySeconds > 0) {
|
|
|
oAuth2AccessToken.setExpiration(new Date(System.currentTimeMillis() + (validitySeconds * 1000L)));
|