public function getClientDetails($client_id)
    {
        // Get Client
        $client = $this->em->getRepository('OAuth2ServerBundle:Client')->find($client_id);

        if (!$client) {
            return false;
        }

        return array(
            'redirect_uri' => implode(' ', $client->getRedirectUri()),
            'client_id' => $client->getClientId(),
            'grant_types' => $client->getGrantTypes()
        );
    }
public function getClientDetails($client_id)
    {
        // Get Client
        $client = $this->em->getRepository('OAuth2ServerBundle:Client')->find($client_id);

        if (!$client) {
            return false;
        }

        return array(
            'redirect_uri' => implode(' ', $client->getRedirectUri()),
            'client_id' => $client->getClientId(),
            'grant_types' => $client->getGrantTypes()
        );
    }
public function getClientDetails ( $ client_id ) { // Get Client $ client = $ this -> em -> getRepository ( 'OAuth2ServerBundle:Client' ) -> find ( $ client_id ) ; if ( ! $ client ) { return false ; } return array ( 'redirect_uri' => implode ( ' ' , $ client -> getRedirectUri ( ) ) , 'client_id' => $ client -> getClientId ( ) , 'grant_types' => $ client -> getGrantTypes ( ) ) ; }
Get client details corresponding client_id.

OAuth says we should store request URIs for each registered client.
Implement this function to grab the stored URI for a given client id.

@param $client_id
Client identifier to be check with.

@return array
Client details. The only mandatory key in the array is "redirect_uri".
This function MUST return FALSE if the given client does not exist or is
invalid. "redirect_uri" can be space-delimited to allow for multiple valid uris.
@code
return array(
"redirect_uri" => REDIRECT_URI,      // REQUIRED redirect_uri registered for the client
"client_id"    => CLIENT_ID,         // OPTIONAL the client id
"grant_types"  => GRANT_TYPES,       // OPTIONAL an array of restricted grant types
);
@endcode

@ingroup oauth2_section_4
Get client details corresponding client_id .