Added remote address arguments.
This commit is contained in:
parent
6a17a53290
commit
926bd02bfc
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue