bshaffer / oauth2-server-php-docs

documentation for the oauth2-server-php library
231 stars 148 forks source link

JWT Bearer Grant type not validating scope #56

Open mtvbrianking opened 9 years ago

mtvbrianking commented 9 years ago

I have managed to add scope on the jwt bearer grant type but it won't validate the scope like other grant types are doing by default.


$jwt = generateJWT($private_key, $client_id, $user_id, $scope, $audience, $expires, $nbf);
{
access_token: "30dd4b59463766d4704a3d2242f6e8b40145b79c",
expires_in: 3600,
token_type: "Bearer",
scope: "unknown_scope"
}

unknow_scope is not supported and other grant type validate that except for jwt bearer