diff options
author | Simon Rettberg | 2015-07-15 17:26:44 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-15 17:26:44 +0200 |
commit | 87e36a604a6d475645d82aa5cdcec8b13bb37c95 (patch) | |
tree | e05e7ca3a5dfa750f6b6a709a29b58aa28af5807 /src/main/thrift/bwlp.thrift | |
parent | Add classes for analyzing vm metadata files (diff) | |
download | master-sync-shared-87e36a604a6d475645d82aa5cdcec8b13bb37c95.tar.gz master-sync-shared-87e36a604a6d475645d82aa5cdcec8b13bb37c95.tar.xz master-sync-shared-87e36a604a6d475645d82aa5cdcec8b13bb37c95.zip |
Frickeled new thrift interface stuff
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r-- | src/main/thrift/bwlp.thrift | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift index 0f4217a..b135094 100644 --- a/src/main/thrift/bwlp.thrift +++ b/src/main/thrift/bwlp.thrift @@ -20,15 +20,13 @@ typedef i64 UnixTimestamp enum AuthorizationError { GENERIC_ERROR, NOT_AUTHENTICATED, - NO_PERMISSION -} - -enum AuthenticationError { - GENERIC_ERROR, - INVALID_CREDENTIALS, + NO_PERMISSION, ACCOUNT_SUSPENDED, + ORGANIZATION_SUSPENDED, + INVALID_CREDENTIALS, INVALID_ORGANIZATION, INVALID_KEY, + INVALID_TOKEN, CHALLENGE_FAILED, BANNED_NETWORK } @@ -298,11 +296,6 @@ exception TAuthorizationException { 2: string message } -exception TAuthenticationException { - 1: AuthenticationError number, - 2: string message -} - exception TInvalidTokenException { } @@ -338,7 +331,8 @@ service SatelliteServer { void cancelDownload(1: string downloadToken), // Authentication - bool isAuthenticated(1: Token userToken), + void isAuthenticated(1: Token userToken) + throws (1:TAuthorizationException authError, 2:TInternalServerError serverError), void invalidateSession(1: Token userToken), // find a user in a given organization by a search term @@ -444,10 +438,10 @@ service MasterServer { bool isServerAuthenticated(1:Token serverSessionId), // Start authentication of server for given organization binary startServerAuthentication(1:string organizationId) - throws (1: TAuthenticationException failure), + throws (1: TAuthorizationException failure), // Reply to master server authentication challenge ServerSessionData serverAuthenticate(1:string organizationId, 2:binary challengeResponse) - throws (1:TAuthenticationException failure), + throws (1:TAuthorizationException failure), // Request upload of an image to the master server TransferInformation submitImage(1:Token serverSessionId, 2:ImagePublishData imageDescription, 3:list<binary> blockHashes) throws (1:TAuthorizationException failure, 2: TImageDataException failure2, 3: TTransferRejectedException failure3), |