SUPPORT-8942: Fix
This commit is contained in:
parent
318327d5d4
commit
8376e8f1c7
1 changed files with 3 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue