oauth2-server-php-docs
oauth2-server-php-docs copied to clipboard
JWT Bearer Grant type not validating scope
trafficstars
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