File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ class Context {
1313 public:
1414 enum SecurityMode {
1515 BASIC_AUTHENTICATION,
16- APIKEY_IDENTIFICATION
16+ APIKEY_IDENTIFICATION,
17+ ANONYMOUS_IDENTIFICATION
1718 };
1819
1920 Context ();
Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ const std::string& Context::user() const {
337337 switch (mode_) {
338338 case BASIC_AUTHENTICATION: return username_;
339339 case APIKEY_IDENTIFICATION: return apiKey;
340+ case ANONYMOUS_IDENTIFICATION: return NULL ;
340341 }
341342
342343 throw MalformedArgumentsException (" Unknown authentication mode" );
@@ -346,6 +347,7 @@ const std::string& Context::pass() const {
346347 switch (mode_) {
347348 case BASIC_AUTHENTICATION: return password_;
348349 case APIKEY_IDENTIFICATION: return api_key_;
350+ case ANONYMOUS_IDENTIFICATION: return NULL ;
349351 }
350352
351353 throw MalformedArgumentsException (" Unknown authentication mode" );
You can’t perform that action at this time.
0 commit comments