SUPPORT-8942: Fix

This commit is contained in:
Eduard Tihomirov 2025-03-04 15:33:58 +03:00
parent 318327d5d4
commit 8376e8f1c7

View file

@ -332,6 +332,9 @@ public class EsiaAuthService {
tokenResponse != null ? tokenResponse.getError_description() : "response is empty";
throw new IllegalStateException("Esia response error. " + errMsg);
}
if (!tokenResponse.getState().equals(state)) {
throw new EsiaException("Token invalid. State from request not equals with state from response.");
}
String esiaAccessTokenStr = tokenResponse.getAccess_token();
String verifyResult = verifyToken(esiaAccessTokenStr);
if (verifyResult != null) {