Corrected method name.
This commit is contained in:
parent
2eed4d170c
commit
dd968eae44
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ final class OAuth2Routes extends RouteHandler {
|
|||
|
||||
// this is a temporary endpoint so i can actually use access tokens for something already
|
||||
#[HttpGet('/oauth2/check_token_do_not_rely_on_this_existing_in_a_year')]
|
||||
public function postIntrospect($response, $request) {
|
||||
public function getCheckTokenDoNotRelyOnThisExistingInAYear($response, $request) {
|
||||
$authzHeader = explode(' ', (string)$request->getHeaderLine('Authorization'));
|
||||
if(strcasecmp($authzHeader[0], 'Bearer') !== 0 || count($authzHeader) < 2) {
|
||||
$response->setStatusCode(401);
|
||||
|
|
Reference in a new issue