|
@@ 89-99 (lines=11) @@
|
| 86 |
|
'oauth_clients.name as name') |
| 87 |
|
->join('oauth_client_endpoints', 'oauth_clients.id', '=', 'oauth_client_endpoints.client_id') |
| 88 |
|
->where('oauth_clients.id', $clientId); |
| 89 |
|
} elseif (!is_null($redirectUri) && is_null($clientSecret)) { |
| 90 |
|
$query = $this->getConnection()->table('oauth_clients') |
| 91 |
|
->select( |
| 92 |
|
'oauth_clients.id as id', |
| 93 |
|
'oauth_clients.secret as secret', |
| 94 |
|
'oauth_client_endpoints.redirect_uri as redirect_uri', |
| 95 |
|
'oauth_clients.name as name') |
| 96 |
|
->join('oauth_client_endpoints', 'oauth_clients.id', '=', 'oauth_client_endpoints.client_id') |
| 97 |
|
->where('oauth_clients.id', $clientId) |
| 98 |
|
->where('oauth_client_endpoints.redirect_uri', $redirectUri); |
| 99 |
|
} elseif (!is_null($clientSecret) && is_null($redirectUri)) { |
| 100 |
|
$query = $this->getConnection()->table('oauth_clients') |
| 101 |
|
->select( |
| 102 |
|
'oauth_clients.id as id', |
|
@@ 109-120 (lines=12) @@
|
| 106 |
|
->join('oauth_client_endpoints', 'oauth_clients.id', '=', 'oauth_client_endpoints.client_id') |
| 107 |
|
->where('oauth_clients.id', $clientId) |
| 108 |
|
->where('oauth_clients.secret', $clientSecret); |
| 109 |
|
} elseif (!is_null($clientSecret) && !is_null($redirectUri)) { |
| 110 |
|
$query = $this->getConnection()->table('oauth_clients') |
| 111 |
|
->select( |
| 112 |
|
'oauth_clients.id as id', |
| 113 |
|
'oauth_clients.secret as secret', |
| 114 |
|
'oauth_client_endpoints.redirect_uri as redirect_uri', |
| 115 |
|
'oauth_clients.name as name') |
| 116 |
|
->join('oauth_client_endpoints', 'oauth_clients.id', '=', 'oauth_client_endpoints.client_id') |
| 117 |
|
->where('oauth_clients.id', $clientId) |
| 118 |
|
->where('oauth_clients.secret', $clientSecret) |
| 119 |
|
->where('oauth_client_endpoints.redirect_uri', $redirectUri); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
if ($this->limitClientsToGrants === true && !is_null($grantType)) { |
| 123 |
|
$query = $query->join('oauth_client_grants', 'oauth_clients.id', '=', 'oauth_client_grants.client_id') |