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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -