cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Evans <eev...@rackspace.com>
Subject Re: Cassandra access control
Date Wed, 02 Dec 2009 20:14:53 GMT
On Wed, 2009-12-02 at 13:28 -0600, Ted Zlatanov wrote:
> 
> struct AuthenticationRequest {
>     1: required map<string, string> credentials,
> }
> 
> service Cassandra {
> ...
>   void login(1: required string keyspace, 
>              2: optional AuthenticationRequest auth_request) 
>        throws (1:AuthenticationException aux, 2:
> AuthorizationException azx),
> ...
> } 

Did you maybe mean...?

struct AuthenticationRequest {
    1: optional map<string, string> credentials,
}

service Cassandra {
...
  void login(1:required string keyspace,
             2:required AuthenticationRequest auth_request)
  throws (1:AuthenticationException aux, 2:AuthorizationException azx),
...
}

i.e. AuthenticationRequest required for the method (has to be), but the
map is optional?

-- 
Eric Evans
eevans@rackspace.com


Mime
View raw message