mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
feat: add impersonation keys to LOCATION methods in OpenAPI3 spec
This commit is contained in:
1 parent
2056059f89
commit
9aef57f359
1 file changed
+10
@@ -384,6 +384,16 @@ class OpenAPI3 extends Format
|
||||
}
|
||||
|
||||
$temp['x-appwrite']['auth'] = array_slice($securities, 0, $this->authCount);
|
||||
|
||||
if ($sdk->getType() === MethodType::LOCATION) {
|
||||
foreach (['ImpersonateUserId', 'ImpersonateUserEmail', 'ImpersonateUserPhone'] as $key) {
|
||||
if (\array_key_exists($key, $this->keys)) {
|
||||
$securities[$key] = [];
|
||||
$temp['x-appwrite']['auth'][$key] = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$temp['security'][] = $securities;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user