Corrected method name.

This commit is contained in:
flash 2024-07-21 01:38:47 +00:00
parent 2eed4d170c
commit dd968eae44

View file

@ -756,7 +756,7 @@ final class OAuth2Routes extends RouteHandler {
// this is a temporary endpoint so i can actually use access tokens for something already // 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')] #[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')); $authzHeader = explode(' ', (string)$request->getHeaderLine('Authorization'));
if(strcasecmp($authzHeader[0], 'Bearer') !== 0 || count($authzHeader) < 2) { if(strcasecmp($authzHeader[0], 'Bearer') !== 0 || count($authzHeader) < 2) {
$response->setStatusCode(401); $response->setStatusCode(401);