|
@@ -295,6 +295,13 @@ public class CustomTokenServices implements AuthorizationServerTokenServices, Re
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
+ public void revokeTokenByPhone(String phone) {
|
|
|
+ String[] clientIds = new String[] {"system", "student", "teacher","website"};
|
|
|
+ for (String cId : clientIds) {
|
|
|
+ revokeToken(cId, phone);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public boolean revokeToken(String tokenValue) {
|
|
|
OAuth2AccessToken accessToken = tokenStore.readAccessToken(tokenValue);
|
|
|
if (accessToken == null) {
|