mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-12 17:44:31 +00:00
Return access tokens' scopes, not hardcoded list
This commit is contained in:
parent
2becd273c4
commit
7b0a6060b2
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ class BearerTokenResponse extends \League\OAuth2\Server\ResponseTypes\BearerToke
|
||||||
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
|
protected function getExtraParams(AccessTokenEntityInterface $accessToken)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'created_at' => time(),
|
'created_at' => time(),
|
||||||
'scope' => 'read write follow push'
|
'scope' => implode(' ', $accessToken->getScopes())
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue