The expected behavior is for the approved scopes to match those requested during authorization, as observed with other providers.
Screenshots
Laravel Passport Response (Scopes are Empty)
GitHub Response (Scopes are Returned).
// Result if you log the response of GitHub in the user() method. It returns 'scope' property.
array (
'access_token' => 'token',
'token_type' => 'bearer',
'scope' => 'user:email',
)
Laravel Passport is not returning approved scopes, unlike other providers such as GitHub and Google.
When logging the response in the user method, the response is:
As a result,
setApprovedScopes($this->parseApprovedScopes($response))
consistently returns null.Steps to Reproduce:
Redirect call
Callback call
The expected behavior is for the approved scopes to match those requested during authorization, as observed with other providers.
Screenshots
Laravel Passport Response (Scopes are Empty)
GitHub Response (Scopes are Returned).