Skip to content
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

Merged
merged 8 commits into from
Apr 19, 2023
Merged

Enh/allow impersonate #117

merged 8 commits into from
Apr 19, 2023

Conversation

gevorgmansuryan
Copy link
Contributor

@gevorgmansuryan gevorgmansuryan commented Apr 16, 2023

@gevorgmansuryan gevorgmansuryan requested a review from luke- April 16, 2023 19:16
Copy link
Contributor

@luke- luke- left a 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.

@luke- luke- linked an issue Apr 17, 2023 that may be closed by this pull request
@luke-
Copy link
Contributor

luke- commented Apr 17, 2023

@gevorgmansuryan Can you please try to rebase this PR so it only contains Commits regarding the Impersonate?

@gevorgmansuryan
Copy link
Contributor Author

@gevorgmansuryan Can you please try to rebase this PR so it only contains Commits regarding the Impersonate?

done

@gevorgmansuryan gevorgmansuryan requested a review from luke- April 17, 2023 16:21
Copy link
Contributor

@luke- luke- left a 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..

@@ -88,4 +88,17 @@ public function testCurrent(ApiTester $I)
$I->seeUserDefinition('Admin');
}

public function testImpersonate(ApiTester $I)
{
$I->wantTo('Check Impersonate');
Copy link
Contributor

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

@gevorgmansuryan gevorgmansuryan requested a review from luke- April 18, 2023 17:59
@luke- luke- merged commit c000da1 into master Apr 19, 2023
@luke- luke- deleted the enh/allow-Impersonate branch April 19, 2023 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow Impersonate
2 participants