2016-03-10 20:40:08 +05:30
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace LeagueTests\Grant;
|
|
|
|
|
|
|
|
use League\OAuth2\Server\Exception\OAuthServerException;
|
|
|
|
use League\OAuth2\Server\Grant\ImplicitGrant;
|
|
|
|
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
|
|
|
|
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
|
|
|
|
use League\OAuth2\Server\Repositories\UserRepositoryInterface;
|
2016-03-15 05:40:47 +05:30
|
|
|
use LeagueTests\Stubs\ClientEntity;
|
2016-03-10 20:40:08 +05:30
|
|
|
use LeagueTests\Stubs\StubResponseType;
|
|
|
|
use LeagueTests\Stubs\UserEntity;
|
|
|
|
use Psr\Http\Message\ResponseInterface;
|
|
|
|
use Zend\Diactoros\ServerRequest;
|
|
|
|
|
|
|
|
class ImplicitGrantTest extends \PHPUnit_Framework_TestCase
|
|
|
|
{
|
2016-03-18 01:48:28 +05:30
|
|
|
/**
|
|
|
|
* CryptTrait stub
|
|
|
|
*/
|
|
|
|
protected $cryptStub;
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
$this->cryptStub = new CryptTraitStub;
|
|
|
|
}
|
|
|
|
|
2016-03-10 20:40:08 +05:30
|
|
|
public function testGetIdentifier()
|
|
|
|
{
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$this->assertEquals('implicit', $grant->getIdentifier());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testCanRespondToRequest()
|
|
|
|
{
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
null,
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
[
|
2016-03-10 23:10:28 +05:30
|
|
|
'response_type' => 'token',
|
2016-03-10 20:40:08 +05:30
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$this->assertTrue($grant->canRespondToRequest($request));
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequest()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$client->setRedirectUri('http://foo/bar');
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
|
|
|
$accessTokenRepositoryMock = $this->getMockBuilder(AccessTokenRepositoryInterface::class)->getMock();
|
|
|
|
$accessTokenRepositoryMock->method('persistNewAccessToken')->willReturnSelf();
|
|
|
|
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($userRepositoryMock);
|
2016-03-10 20:40:08 +05:30
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
|
|
|
$grant->setAccessTokenRepository($accessTokenRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
'state' => 'foobar',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
$this->assertTrue(strstr($response->getHeader('location')[0], 'http://foo/bar') !== false);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @expectedException \League\OAuth2\Server\Exception\OAuthServerException
|
|
|
|
* @expectedExceptionCode 3
|
|
|
|
*/
|
|
|
|
public function testRespondToAuthorizationRequestMissingClientId()
|
|
|
|
{
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => 123]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequestBadClient()
|
|
|
|
{
|
|
|
|
$client = null;
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-10 20:40:08 +05:30
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => 123]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
try {
|
|
|
|
/* @var StubResponseType $response */
|
|
|
|
$grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
} catch (OAuthServerException $e) {
|
|
|
|
$this->assertEquals($e->getMessage(), 'Client authentication failed');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequestBadRedirectUri()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-10 20:40:08 +05:30
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => 123]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
'redirect_uri' => 'sdfsdf',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
try {
|
|
|
|
/* @var StubResponseType $response */
|
|
|
|
$grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
} catch (OAuthServerException $e) {
|
|
|
|
$this->assertEquals($e->getMessage(), 'Client authentication failed');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @expectedException \League\OAuth2\Server\Exception\OAuthServerException
|
|
|
|
* @expectedExceptionCode 7
|
|
|
|
*/
|
|
|
|
public function testRespondToAuthorizationRequestBadCookie()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$client->setRedirectUri('http://foo/bar');
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
2016-03-16 17:02:21 +05:30
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
2016-03-10 20:40:08 +05:30
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
'oauth_authorize_request' => 'blah',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequestTryLogin()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$client->setRedirectUri('http://foo/bar');
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => null]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'token',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'approve',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
$this->assertTrue(strstr($response->getHeader('content-type')[0], 'text/html') !== false);
|
|
|
|
$this->assertTrue(strstr($response->getBody()->getContents(), 'Incorrect username or password') !== false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequestShowAuthorizeForm()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$client->setRedirectUri('http://foo/bar');
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => 123]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'code',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
$this->assertTrue(strstr($response->getHeader('set-cookie')[0], 'oauth_authorize_request') !== false);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testRespondToAuthorizationRequestUserDenied()
|
|
|
|
{
|
|
|
|
$client = new ClientEntity();
|
|
|
|
$client->setRedirectUri('http://foo/bar');
|
|
|
|
$clientRepositoryMock = $this->getMockBuilder(ClientRepositoryInterface::class)->getMock();
|
|
|
|
$clientRepositoryMock->method('getClientEntity')->willReturn($client);
|
|
|
|
|
|
|
|
$userRepositoryMock = $this->getMockBuilder(UserRepositoryInterface::class)->getMock();
|
|
|
|
$userEntity = new UserEntity();
|
|
|
|
$userRepositoryMock->method('getUserEntityByUserCredentials')->willReturn($userEntity);
|
|
|
|
|
|
|
|
$grant = new ImplicitGrant($this->getMock(UserRepositoryInterface::class));
|
|
|
|
$grant->setClientRepository($clientRepositoryMock);
|
2016-03-18 01:48:28 +05:30
|
|
|
$grant->setPublicKeyPath('file://' . __DIR__ . '/../Stubs/public.key');
|
|
|
|
$grant->setPrivateKeyPath('file://' . __DIR__ . '/../Stubs/private.key');
|
2016-03-10 20:40:08 +05:30
|
|
|
|
|
|
|
$request = new ServerRequest(
|
|
|
|
[
|
|
|
|
'HTTP_HOST' => 'auth-server.tld',
|
|
|
|
'REQUEST_URI' => '/authorize',
|
|
|
|
],
|
|
|
|
[],
|
|
|
|
null,
|
|
|
|
'POST',
|
|
|
|
'php://input',
|
|
|
|
[],
|
|
|
|
[
|
2016-03-18 01:48:28 +05:30
|
|
|
'oauth_authorize_request' => $this->cryptStub->doEncrypt(
|
2016-03-10 20:40:08 +05:30
|
|
|
json_encode(['user_id' => 123]),
|
2016-03-18 01:48:28 +05:30
|
|
|
'file://' . __DIR__ . '/../Stubs/private.key'
|
2016-03-10 20:40:08 +05:30
|
|
|
),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'response_type' => 'code',
|
|
|
|
'client_id' => 'foo',
|
|
|
|
'state' => 'foobar',
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'username' => 'alex',
|
|
|
|
'password' => 'whisky',
|
|
|
|
'action' => 'denied',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
$response = $grant->respondToRequest($request, new StubResponseType(), new \DateInterval('PT10M'));
|
|
|
|
|
|
|
|
$this->assertTrue($response instanceof ResponseInterface);
|
|
|
|
$this->assertTrue(strstr($response->getHeader('location')[0], 'http://foo/bar') !== false);
|
|
|
|
$this->assertTrue(strstr($response->getHeader('location')[0], 'access_denied') !== false);
|
|
|
|
}
|
|
|
|
}
|