CoreFiles by mySites.guru
Auth.php33 lines, 810 bytes, from wordpress-5.9.zip
Raw History Compare with 5.8.19
md5
2b85bbe9d3792d7550fc35b24d39d0bd
sha1
b697548f1cb6ccb9c45c1db63a06d35705c7e4a9
sha256
f53bb4dc9cb5c6cfb3dc010fe6fae714abfe86af481d5f41bcc4e03825a7c8aa
<?php
/**
 * Authentication provider interface
 *
 * @package Requests
 * @subpackage Authentication
 */

/**
 * Authentication provider interface
 *
 * Implement this interface to act as an authentication provider.
 *
 * Parameters should be passed via the constructor where possible, as this
 * makes it much easier for users to use your provider.
 *
 * @see Requests_Hooks
 * @package Requests
 * @subpackage Authentication
 */
interface Requests_Auth {
	/**
	 * Register hooks as needed
	 *
	 * This method is called in {@see Requests::request} when the user has set
	 * an instance as the 'auth' option. Use this callback to register all the
	 * hooks you'll need.
	 *
	 * @see Requests_Hooks::register
	 * @param Requests_Hooks $hooks Hook system
	 */
	public function register(Requests_Hooks $hooks);
}

The same content is in 116 releases, WordPress 5.8-beta1 to 6.1.16. See them all, or every version of this file.