class TestAuth
Same name in other branches
- 9 core/modules/rest/tests/modules/rest_test/src/Authentication/Provider/TestAuth.php \Drupal\rest_test\Authentication\Provider\TestAuth
- 8.9.x core/modules/rest/tests/modules/rest_test/src/Authentication/Provider/TestAuth.php \Drupal\rest_test\Authentication\Provider\TestAuth
- 11.x core/modules/rest/tests/modules/rest_test/src/Authentication/Provider/TestAuth.php \Drupal\rest_test\Authentication\Provider\TestAuth
Authentication provider for testing purposes.
Hierarchy
- class \Drupal\rest_test\Authentication\Provider\TestAuth implements \Drupal\Core\Authentication\AuthenticationProviderInterface
Expanded class hierarchy of TestAuth
1 string reference to 'TestAuth'
- rest_test.services.yml in core/
modules/ rest/ tests/ modules/ rest_test/ rest_test.services.yml - core/modules/rest/tests/modules/rest_test/rest_test.services.yml
1 service uses TestAuth
- rest_test.authentication.test_auth in core/
modules/ rest/ tests/ modules/ rest_test/ rest_test.services.yml - Drupal\rest_test\Authentication\Provider\TestAuth
File
-
core/
modules/ rest/ tests/ modules/ rest_test/ src/ Authentication/ Provider/ TestAuth.php, line 11
Namespace
Drupal\rest_test\Authentication\ProviderView source
class TestAuth implements AuthenticationProviderInterface {
/**
* {@inheritdoc}
*/
public function applies(Request $request) {
return $request->headers
->has('REST-test-auth');
}
/**
* {@inheritdoc}
*/
public function authenticate(Request $request) {
return NULL;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestAuth::applies | public | function | |
TestAuth::authenticate | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.