elyby / accounts

Authentication service for the Ely.by and Minecraft
https://account.ely.by
Apache License 2.0
24 stars 6 forks source link

Unhandled exception when the OAuth2's code can't be decoded #7

Closed sentry-io[bot] closed 4 years ago

sentry-io[bot] commented 4 years ago

Sentry Issue: ACCOUNTS-2

RangeException: Base64::decode() only expects characters in the correct base64 alphabet
  File "/var/www/html/vendor/paragonie/constant_time_encoding/src/Base64.php", line 206, in decode
    throw new \RangeException(
  File "components/Tokens/Component.php", line 111, in decryptValue
    $decoded = Base64UrlSafe::decode($encryptedValue);
  File "components/OAuth2/CryptTrait.php", line 23, in decrypt
    return Yii::$app->tokens->decryptValue($encryptedData);
  File "/var/www/html/vendor/league/oauth2-server/src/Grant/AuthCodeGrant.php", line 114, in respondToAccessTokenRequest
    $authCodePayload = json_decode($this->decrypt($encryptedAuthCode));
  File "/var/www/html/vendor/league/oauth2-server/src/AuthorizationServer.php", line 198, in respondToAccessTokenRequest
    $this->grantTypeAccessTokenTTL[$grantType->getIdentifier()]
...
(9 additional frame(s) were not displayed)