@@ 104-112 (lines=9) @@ | ||
101 | 'oauth_clients.secret as secret', |
|
102 | 'oauth_clients.name as name') |
|
103 | ->where('oauth_clients.id', $clientId); |
|
104 | } elseif (!is_null($clientSecret) && is_null($redirectUri)) { |
|
105 | $query = $this->getConnection()->table('oauth_clients') |
|
106 | ->select( |
|
107 | 'oauth_clients.id as id', |
|
108 | 'oauth_clients.secret as secret', |
|
109 | 'oauth_clients.name as name') |
|
110 | ->where('oauth_clients.id', $clientId) |
|
111 | ->where('oauth_clients.secret', $clientSecret); |
|
112 | } elseif ($this->limitRedirectUri === true && !is_null($clientSecret) && !is_null($redirectUri)) { |
|
113 | $query = $this->getConnection()->table('oauth_clients') |
|
114 | ->select( |
|
115 | 'oauth_clients.id as id', |
|
@@ 123-131 (lines=9) @@ | ||
120 | ->where('oauth_clients.id', $clientId) |
|
121 | ->where('oauth_clients.secret', $clientSecret) |
|
122 | ->where('oauth_client_endpoints.redirect_uri', $redirectUri); |
|
123 | } elseif (!is_null($clientSecret) && !is_null($redirectUri)) { |
|
124 | $query = $this->getConnection()->table('oauth_clients') |
|
125 | ->select( |
|
126 | 'oauth_clients.id as id', |
|
127 | 'oauth_clients.secret as secret', |
|
128 | 'oauth_clients.name as name') |
|
129 | ->where('oauth_clients.id', $clientId) |
|
130 | ->where('oauth_clients.secret', $clientSecret); |
|
131 | } |
|
132 | ||
133 | if ($this->limitClientsToGrants === true && !is_null($grantType)) { |
|
134 | $query = $query->join('oauth_client_grants', 'oauth_clients.id', '=', 'oauth_client_grants.client_id') |