LLMS_REST_Authentication
REST API Authentication.
Description Description
Source Source
File: libraries/lifterlms-rest/includes/class-llms-rest-authentication.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.5 | is_rest_request() accesses uses filter_var instead of llms_filter_input() . Load all includes to accommodate plugins and themes that call determine_current_user early. |
1.0.0-beta.12 | Call llms_rest_authorization_required_error() instructing to not check if the current user is logged in to avoid infinite loops. |
1.0.0-beta.1 | Introduced. |
Methods Methods
- __construct — Constructor
- authenticate — Authenticate an API Request
- check_authentication_error — Check for authentication error.
- check_permissions — Check if the API Key can perform the request.
- find_key — Find a key via unhashed consumer key
- get_credentials — Locate credentials in the $_SERVER superglobal.
- get_error — Retrieve the auth error object.
- is_rest_request — Determine if the request is a request to a LifterLMS REST API endpoint.
- locate_credentials — Get api credentials from headers and then basic auth.
- send_unauthorized_headers — Return a WWW-Authenticate header error message when incorrect creds are supplied
- set_error — Set authentication error object.