-
Notifications
You must be signed in to change notification settings - Fork 23
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enh/allow impersonate #117
Conversation
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.
@gevorgmansuryan Does the PR include other commits? Can you please check again? Would be great to have only the Impersonate Commits to review. Got it, I'll merge the BearerAuth PR first.
@gevorgmansuryan Can you please try to |
done |
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.
@gevorgmansuryan Thanks looks good. Two points:
- Can you please enhance the tests a bit
- Are expired tokens somewhere deleted? Maybe this could be done when inserting a new token..
tests/codeception/api/AuthCest.php
Outdated
@@ -88,4 +88,17 @@ public function testCurrent(ApiTester $I) | |||
$I->seeUserDefinition('Admin'); | |||
} | |||
|
|||
public function testImpersonate(ApiTester $I) | |||
{ | |||
$I->wantTo('Check Impersonate'); |
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.
Can you please add a test to validate a "regular" user cannot impersonate
#103