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) {