oauth 2.0 - how can i get scope description in laravel passport -
using laravel passport token base authentication. have set scope for
access token , on controller wanted scope value , description.
protected function authenticate(request $request) { $request->request->add([ 'username' => $request->username, 'password' => $request->password, 'grant_type' => 'password', 'client_id' => $this->client->id, 'client_secret' => $this->client->secret, 'scope' => 'admin' ]); $proxy = request::create( 'oauth/token', 'post' ); $data = route::dispatch($proxy); //$data = json_decode($data); return $data; }
Comments
Post a Comment