CoreFiles by mySites.guru
Auth.php33 lines, 810 bytes, from wordpress-5.2.28.zip
Raw History Compare with 5.2.27
md5
3197d2529dd957b2acc3944f5bfcd64a
sha1
22879739361c70c0479d75cf94c5fedfd62b5f67
sha256
6d87760a86509049940d80def28ca80fd830ba4a2a4d27d18304289605ac04cb
<?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 481 releases, WordPress 4.6-beta1 to 5.7.21. See them all, or every version of this file.