|
MediaWiki master
|
An implementation of BasicAuthorizerInterface which creates a request-local object (a request authorizer) to do the actual authorization. More...
Inherits MediaWiki\Rest\BasicAccess\BasicAuthorizerInterface.
Inherited by MediaWiki\Rest\BasicAccess\MWBasicAuthorizer.

Public Member Functions | |||||||
| authorize (RequestInterface $request, Handler $handler) | |||||||
Determine whether a request should be permitted, given the handler's needsReadAccess() and needsWriteAccess().If the request should be permitted, return null. If the request should be denied, return a string error identifier.
| |||||||
Protected Member Functions | |
| createRequestAuthorizer (RequestInterface $request, Handler $handler) | |
| Create a BasicRequestAuthorizer to authorize the request. | |
An implementation of BasicAuthorizerInterface which creates a request-local object (a request authorizer) to do the actual authorization.
Definition at line 14 of file BasicAuthorizerBase.php.
| MediaWiki\Rest\BasicAccess\BasicAuthorizerBase::authorize | ( | RequestInterface | $request, |
| Handler | $handler ) |
Determine whether a request should be permitted, given the handler's needsReadAccess() and needsWriteAccess().If the request should be permitted, return null. If the request should be denied, return a string error identifier.
| RequestInterface | $request | |
| Handler | $handler |
Implements MediaWiki\Rest\BasicAccess\BasicAuthorizerInterface.
Definition at line 16 of file BasicAuthorizerBase.php.
References MediaWiki\Rest\BasicAccess\BasicAuthorizerBase\createRequestAuthorizer().
|
abstractprotected |
Create a BasicRequestAuthorizer to authorize the request.
| RequestInterface | $request | |
| Handler | $handler |
Reimplemented in MediaWiki\Rest\BasicAccess\MWBasicAuthorizer.
Referenced by MediaWiki\Rest\BasicAccess\BasicAuthorizerBase\authorize().