-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Move IToken and IProvider::getToken to OCP #41017
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
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
ce7bd52
to
b82e25e
Compare
…tibility Signed-off-by: Côme Chilliet <[email protected]>
0202073
to
1bdf952
Compare
Signed-off-by: Côme Chilliet <[email protected]>
lib/private/Authentication/Exceptions/ExpiredTokenException.php
Outdated
Show resolved
Hide resolved
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
Signed-off-by: Côme Chilliet <[email protected]>
* Set the timestamp of the last password check | ||
* @since 28.0.0 | ||
*/ | ||
public function setLastCheck(int $time): void; |
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.
nit: do we need to expose setters as well our would read access be sufficient for the public API?
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.
I think it’s better to be able to deprecate the OC interface and avoid having to juggle with the two interfaces forever.
It would be pretty to have the setters in the OC but I fear it’s not worth the hassle.
Summary
Move
IToken
toOCP
and addgetToken
method in the IProvider already in OCP, so that applications can rely upon it.I made it so that applications using the interfaces from OC do not have to change their code until they want to.
More method could/should be added to
OCP\Authentication\Token\IProvider
once the idea is approved. If you know which methods applications are using you can list them in the comments.Checklist