AdvancedLearning\Oauth2Server\Middleware\AuthenticationMiddleware
Class ResourceServerMiddleware.
Replacement for @see \League\OAuth2\Server\Middleware\ResourceServerMiddleware
to make it compatible with SilverStripe.
Synopsis
class AuthenticationMiddleware
implements
HTTPMiddleware
{
- // members
- protected Application $application = NULL;
- protected Authenticator $authenticator;
- // methods
- public void __construct()
- public HTTPResponse process()
Hierarchy
Implements
- SilverStripe\Control\Middleware\HTTPMiddleware
Members
protected
- $application — SilverStripe\Core\Application
- $authenticator — AdvancedLearning\Oauth2Server\Services\Authenticator
Methods
public
- __construct() — Build error control chain for an application
- process() — Process the middleware.