diff options
author | Simon Rettberg | 2015-08-11 14:21:04 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-08-11 14:21:04 +0200 |
commit | f6fe4500652b153443ebd947efb1557196f63dfc (patch) | |
tree | d1cea23f0c79ac750f2766f5ad6e1c2ed4f9eaaf /src/main/thrift/bwlp.thrift | |
parent | Add whoami() and getConfig() to sat RPC (diff) | |
download | master-sync-shared-f6fe4500652b153443ebd947efb1557196f63dfc.tar.gz master-sync-shared-f6fe4500652b153443ebd947efb1557196f63dfc.tar.xz master-sync-shared-f6fe4500652b153443ebd947efb1557196f63dfc.zip |
whoami() returns WhoamiInfo
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r-- | src/main/thrift/bwlp.thrift | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 6f9c363..fb29e9f 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -72,6 +72,12 @@ struct UserInfo { 6: optional Role role, } +struct WhoamiInfo { + 1: UserInfo user, + 2: bool isSuperUser, + 3: bool canListImages, +} + struct Organization { 1: string organizationId, 2: string displayName, @@ -380,7 +386,7 @@ service SatelliteServer { throws (1:TAuthorizationException authError, 2:TInternalServerError serverError), // Query own user information (for validation or session resume) - UserInfo whoami(1: Token userToken) + WhoamiInfo whoami(1: Token userToken) throws (1:TAuthorizationException authError, 2:TInternalServerError serverError), void invalidateSession(1: Token userToken), |