mirror of
https://github.com/elyby/accounts.git
synced 2024-12-25 22:59:53 +05:30
Fixes ACCOUNTS-319
This commit is contained in:
parent
33091aaefa
commit
5649c49a57
@ -132,7 +132,11 @@ class Component extends YiiUserComponent {
|
|||||||
$token = &self::$parsedTokensCache[$jwtString];
|
$token = &self::$parsedTokensCache[$jwtString];
|
||||||
if ($token === null) {
|
if ($token === null) {
|
||||||
$jwt = new Jwt();
|
$jwt = new Jwt();
|
||||||
|
try {
|
||||||
$notVerifiedToken = $jwt->deserialize($jwtString);
|
$notVerifiedToken = $jwt->deserialize($jwtString);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
throw new VerificationException('Incorrect token encoding', 0, $e);
|
||||||
|
}
|
||||||
|
|
||||||
$context = new VerificationContext(EncryptionFactory::create($this->getAlgorithm()));
|
$context = new VerificationContext(EncryptionFactory::create($this->getAlgorithm()));
|
||||||
$context->setSubject(self::JWT_SUBJECT_PREFIX);
|
$context->setSubject(self::JWT_SUBJECT_PREFIX);
|
||||||
|
Loading…
Reference in New Issue
Block a user