mirror of
https://github.com/elyby/accounts.git
synced 2024-11-26 08:42:01 +05:30
Add account_info permission to tokens obtained via legacy authserver API [deploy dev]
This commit is contained in:
parent
2bb465d867
commit
c34a2db063
@ -54,7 +54,7 @@ class TokensFactory extends Component {
|
||||
|
||||
public function createForMinecraftAccount(Account $account, string $clientToken): Token {
|
||||
return Yii::$app->tokens->create([
|
||||
'scope' => $this->prepareScopes([P::MINECRAFT_SERVER_SESSION]),
|
||||
'scope' => $this->prepareScopes([P::OBTAIN_OWN_ACCOUNT_INFO, P::MINECRAFT_SERVER_SESSION]),
|
||||
'ely-client-token' => new EncryptedValue($clientToken),
|
||||
'sub' => $this->buildSub($account->id),
|
||||
'exp' => Carbon::now()->addDays(2)->getTimestamp(),
|
||||
|
Loading…
Reference in New Issue
Block a user