diff options
author | Greta Doci <gretadoci@gmail.com> | 2019-06-12 14:26:01 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-09-15 12:04:27 +0200 |
commit | 0a874c51af8dd6652c694f0545489af23d53771a (patch) | |
tree | 6781c94e2bb54cf4392ae826abf08086ff277321 /lib/public/IUserSession.php | |
parent | d231fc9843b117c3361ce0b4e030d55c59607005 (diff) | |
download | nextcloud-server-0a874c51af8dd6652c694f0545489af23d53771a.tar.gz nextcloud-server-0a874c51af8dd6652c694f0545489af23d53771a.zip |
Disable app token creation for impersonated people, ref #15539
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'lib/public/IUserSession.php')
-rw-r--r-- | lib/public/IUserSession.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/IUserSession.php b/lib/public/IUserSession.php index d7bf5f9a385..b3c470e5be5 100644 --- a/lib/public/IUserSession.php +++ b/lib/public/IUserSession.php @@ -42,6 +42,7 @@ namespace OCP; interface IUserSession { /** * Do a user login + * * @param string $user the username * @param string $password the password * @return bool true if successful @@ -52,6 +53,7 @@ interface IUserSession { /** * Logs the user out including all the session data * Logout, destroys session + * * @return void * @since 6.0.0 */ @@ -80,4 +82,19 @@ interface IUserSession { * @since 8.0.0 */ public function isLoggedIn(); + + /** + * get getImpersonatingUserID + * + * @return string|null + * @since 18.0.0 + */ + public function getImpersonatingUserID(): ?string; + + /** + * set setImpersonatingUserID + * + * @since 18.0.0 + */ + public function setImpersonatingUserID(bool $useCurrentUser = true): void; } |