Commit 5c2d9e98 authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Change getBearerToken method name to fit naming convention

parent d214b178
......@@ -56,7 +56,7 @@ class AuthenticationController extends AbstractRestController implements LoggerA
/**
* Checks if there is a logged in frontend user and gives out a token
*/
public function getBearerTokenAction(): void {
public function postGetbearertokenAction(): void {
$loggedInUser = $GLOBALS['TSFE']->fe_user->user;
......
......@@ -101,7 +101,7 @@ class RestAuthenticator extends AbstractRestMiddleware {
/**
* when the client requests a bearer token, we don't need to do access checks etc. the user verification is done by the AuthServices
*/
if (!($this->pathSegments['entity'] === 'authentication' && $actionName === 'getbearertoken' && $httpMethod === 'POST')) {
if (!($this->pathSegments['entity'] === 'authentication' && $actionName === 'postGetbearertoken' && $httpMethod === 'POST')) {
$authenticated = $this->authenticationService->verifyRequest($this->requestHeaders);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment