- Rebrand from boring WPOAuth2Server to TigerStyle Scent
- Replace OAuth2 terminology with cat-themed concepts:
• Bearer Token → Scent Token
• Authorization Code → Territory Code
• Client Authentication → Scent Recognition
• Token Introspection → Scent Analysis
- Create main tigerstyle-scent.php plugin with proper WordPress header
- Cat-themed authentication UI with territory access forms
- TigerStyle branding with orange/tiger color scheme
- Comprehensive README with cat authentication metaphors
- Plugin architecture follows TigerStyle conventions
- Admin interface uses scent/territory language throughout
🐾 Leave your digital scent trail for secure access control!
43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* TigerStyle Scent Authenticator Interface
|
|
* Defines the contract for all authentication methods in the TigerStyle ecosystem
|
|
*
|
|
* @package TigerStyle Scent
|
|
*/
|
|
|
|
defined('ABSPATH') or die('Direct access forbidden.');
|
|
|
|
interface TigerStyleScent_AuthenticatorInterface {
|
|
|
|
/**
|
|
* Authenticate user using this method
|
|
* Like a cat recognizing another cat's identity
|
|
*
|
|
* @return int|false User ID if authenticated successfully, false otherwise
|
|
*/
|
|
public function authenticate();
|
|
|
|
/**
|
|
* Get the type identifier for this authenticator
|
|
*
|
|
* @return string Type identifier (e.g., 'scent_token', 'api_key', 'jwt')
|
|
*/
|
|
public function get_type(): string;
|
|
|
|
/**
|
|
* Get authentication priority
|
|
* Higher numbers are checked first, like a cat's hierarchy
|
|
*
|
|
* @return int Priority level
|
|
*/
|
|
public function get_priority(): int;
|
|
|
|
/**
|
|
* Check if this authenticator can handle the current request
|
|
* Like sensing if there's something this authenticator can recognize
|
|
*
|
|
* @return bool True if this authenticator should attempt authentication
|
|
*/
|
|
public function can_handle_request(): bool;
|
|
} |