summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/IProvider.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-16 12:39:00 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-22 14:26:13 +0200
commit46aafe4f11e971e442baa3283906878ef5dae856 (patch)
tree662f8d10c88163b6cec9f70a79cf1b14a6f242fa /lib/private/Authentication/Token/IProvider.php
parent8fcb7d4334526a30164db1d0c45b89f9f38614bd (diff)
downloadnextcloud-server-46aafe4f11e971e442baa3283906878ef5dae856.tar.gz
nextcloud-server-46aafe4f11e971e442baa3283906878ef5dae856.zip
Certain tokens can expire
However due to the nature of what we store in the token (encrypted passwords etc). We can't just delete the tokens because that would make the oauth refresh useless. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Authentication/Token/IProvider.php')
-rw-r--r--lib/private/Authentication/Token/IProvider.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/IProvider.php b/lib/private/Authentication/Token/IProvider.php
index 707645a09e9..8b812a9533c 100644
--- a/lib/private/Authentication/Token/IProvider.php
+++ b/lib/private/Authentication/Token/IProvider.php
@@ -51,6 +51,7 @@ interface IProvider {
*
* @param string $tokenId
* @throws InvalidTokenException
+ * @throws ExpiredTokenException
* @return IToken
*/
public function getToken($tokenId);
@@ -61,6 +62,7 @@ interface IProvider {
* @param string $tokenId
* @throws InvalidTokenException
* @return DefaultToken
+ * @throws ExpiredTokenException
*/
public function getTokenById($tokenId);