LLMS_REST_Authentication::locate_credentials()
Get api credentials from headers and then basic auth.
Return Return
(array|false)
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-authentication.php
*/ protected function locate_credentials() { // Attempt to get creds from headers. $creds = $this->get_credentials( 'HTTP_X_LLMS_CONSUMER_KEY', 'HTTP_X_LLMS_CONSUMER_SECRET' ); if ( $creds ) { return $creds; } // Attempt to get creds from basic auth. $creds = $this->get_credentials( 'PHP_AUTH_USER', 'PHP_AUTH_PW' ); if ( $creds ) { return $creds; } return false;
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.1 | Introduced. |