Symbiote\ApiWrapper\WebserviceAuthenticator
Manages authentication of a user for webservice access
- Author: <marcus@silverstripe.com.au>
- License: BSD License http://www.silverstripe.org/bsd-license
Synopsis
class WebserviceAuthenticator
{
- // members
- private static array $dependencies = ;
- public boolean $allowPublicAccess = false;
- public boolean $allowSecurityId = true;
- public TokenAuthenticator $tokenAuthenticator;
- public HmacValidator $hmacValidator;
- // methods
- public void authenticate()
- protected void getToken()
Members
private
- $dependencies
public
- $allowPublicAccess
—
boolean
Disable all public requests by default; If this is set to true, services must still explicitly allow public access on those services that can be called by non-auth'd users. - $allowSecurityId
—
boolean
Whether allowing access to the API by passing a security ID after logging in. - $hmacValidator
—
Symbiote\ApiWrapper\HmacValidator
Optionally set an hmac validator if you want to require hmac auth on the messages. - $tokenAuthenticator — Symbiote\ApiWrapper\TokenAuthenticator