-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project?Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of serviceand privacy statement.We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Development Keys #8378
base: 1.6.x
Are you sure you want to change the base?
Development Keys #8378
Conversation
app/controllers/shared/api.php
Outdated
@@ -292,6 +292,37 @@ | |||
} | |||
} | |||
} | |||
} elseif($keyType === API_KEY_TEST) { | |||
var_dump('keys matches test'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
leftover
app/controllers/shared/api.php
Outdated
Authorization::setRole(Auth::USER_ROLE_ADMIN); | ||
Authorization::setDefaultStatus(false); // Cancel security segmentation for API keys. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Im not sure what development keys are for. Are they like API keys but for Console user - giving access to all project and project/organization actions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Curious, why not just XList?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Do you mean why not justList
?List
appears to be a keyword.
'x-appwrite-project' => $this->getProject()['$id'], | ||
], $this->getHeaders()), [ | ||
'name' => 'Key Test', | ||
'expire' => DateTime::addSeconds(new \DateTime(), 36000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Let's expire in 10 seconds. After tests have sleep for 10 seconds, and try to use it to get failure.
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
(Provide a description of what this PR does and why it's needed.)
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist