From 926bd02bfcc8f2fdd0f23c05d36bc584e5f91598 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sun, 25 Aug 2024 22:53:05 +0000 Subject: [PATCH] Added remote address arguments. --- src/OAuth2/OAuth2RpcActions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OAuth2/OAuth2RpcActions.php b/src/OAuth2/OAuth2RpcActions.php index 394e3e0..8f57749 100644 --- a/src/OAuth2/OAuth2RpcActions.php +++ b/src/OAuth2/OAuth2RpcActions.php @@ -28,7 +28,7 @@ final class OAuth2RpcActions extends RpcActionHandler { } #[RpcProcedure('hanyuu:oauth2:attemptAppAuth')] - public function procAttemptAppAuth(string $clientId, string $clientSecret = ''): array { + public function procAttemptAppAuth(string $remoteAddr, string $clientId, string $clientSecret = ''): array { try { $appInfo = $this->appsCtx->getData()->getAppInfo(clientId: $clientId, deleted: false); } catch(RuntimeException $ex) { @@ -54,7 +54,7 @@ final class OAuth2RpcActions extends RpcActionHandler { } #[RpcProcedure('hanyuu:oauth2:attemptBearerAuth')] - public function procAttemptBearerAuth(string $token): array { + public function procAttemptBearerAuth(string $remoteAddr, string $token): array { try { $tokenInfo = $this->oauth2Ctx->getTokensData()->getAccessInfo($token, OAuth2TokensData::ACCESS_BY_TOKEN); } catch(RuntimeException $ex) {