-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Allow the rotation of tokens #9484
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9484 +/- ##
============================================
+ Coverage 51.68% 51.69% +<.01%
- Complexity 25720 25721 +1
============================================
Files 1641 1641
Lines 96441 96443 +2
Branches 1393 1393
============================================
+ Hits 49850 49858 +8
+ Misses 46591 46585 -6
|
MorrisJobke
left a comment
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.
Code makes sense 👍
ChristophWurst
left a comment
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.
Looks good. Found one minor naming issue.
| * @param string $newTokenId | ||
| * @return IToken | ||
| */ | ||
| public function setNewToken(IToken $token, string $oldTokenId, string $newTokenId): IToken; |
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.
Would it make sense to name the method rotate or similar?
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.
Yes will do. To much token in this indeed
|
|
||
| /** | ||
| * Get the name of the token | ||
| * @return string |
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.
nitpick for future PRs: return type annotations are not necessary here 😉
This for example will allow rotating the apptoken for oauth Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
de6812c to
aba2559
Compare
This for example will allow rotating the apptoken for oauth
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl