summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/IToken.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-08-03 12:03:18 +0200
committerRobin Appelman <robin@icewind.nl>2016-11-16 15:24:27 +0100
commitb4e27d35f59e359eb7591a15c7f037968081eb1b (patch)
tree3c156c70ef7fc3de6f79aace60f715e999e19d29 /lib/private/Authentication/Token/IToken.php
parent2389e0f25065ca9c7afbc70cc13d555524e363a8 (diff)
downloadnextcloud-server-b4e27d35f59e359eb7591a15c7f037968081eb1b.tar.gz
nextcloud-server-b4e27d35f59e359eb7591a15c7f037968081eb1b.zip
app password scope wip
Signed-off-by: Robin Appelman <icewind@owncloud.com>
Diffstat (limited to 'lib/private/Authentication/Token/IToken.php')
-rw-r--r--lib/private/Authentication/Token/IToken.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/IToken.php b/lib/private/Authentication/Token/IToken.php
index 3fa8ccbb078..a6ba392907d 100644
--- a/lib/private/Authentication/Token/IToken.php
+++ b/lib/private/Authentication/Token/IToken.php
@@ -67,13 +67,25 @@ interface IToken extends JsonSerializable {
public function getLastCheck();
/**
- * Get the timestamp of the last password check
+ * Set the timestamp of the last password check
*
* @param int $time
*/
public function setLastCheck($time);
+ /**
+ * Get the authentication scope for this token
+ *
+ * If the scope is null no limitations exist for the token
+ *
+ * @return array|null
+ */
public function getScope();
+ /**
+ * Set the authentication scope for this token
+ *
+ * @param array|null $scope
+ */
public function setScope($scope);
}