MediaWiki
1.34.0
|
An implementation of BasicAuthorizerInterface which creates a request-local object (a request authorizer) to do the actual authorization. More...
Public Member Functions | |
authorize (RequestInterface $request, Handler $handler) | |
Determine whether a request should be permitted, given the handler's needsReadAccess() and needsWriteAccess(). More... | |
Protected Member Functions | |
createRequestAuthorizer (RequestInterface $request, Handler $handler) | |
Create a BasicRequestAuthorizer to authorize the request. More... | |
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 15 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().