Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/cwpsrv/var/services/oauth/v2/server/OAuth2/Storage/ |
Upload File : |
<?php namespace OAuth2\Storage; /** * Implement this interface to specify how the OAuth2 Server * should verify client credentials * * @author Brent Shaffer <bshafs at gmail dot com> */ interface ClientCredentialsInterface extends ClientInterface { /** * Make sure that the client credentials is valid. * * @param $client_id * Client identifier to be check with. * @param $client_secret * (optional) If a secret is required, check that they've given the right one. * * @return * TRUE if the client credentials are valid, and MUST return FALSE if it isn't. * @endcode * * @see http://tools.ietf.org/html/rfc6749#section-3.1 * * @ingroup oauth2_section_3 */ public function checkClientCredentials($client_id, $client_secret = null); /** * Determine if the client is a "public" client, and therefore * does not require passing credentials for certain grant types * * @param $client_id * Client identifier to be check with. * * @return * TRUE if the client is public, and FALSE if it isn't. * @endcode * * @see http://tools.ietf.org/html/rfc6749#section-2.3 * @see https://github.com/bshaffer/oauth2-server-php/issues/257 * * @ingroup oauth2_section_2 */ public function isPublicClient($client_id); }