mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Mann <g...@mesosphere.io>
Subject Re: Review Request 56474: Added the 'CombinedAuthenticator'.
Date Thu, 09 Mar 2017 23:49:15 GMT


> On Feb. 13, 2017, 11:41 a.m., Alexander Rojas wrote:
> > 3rdparty/libprocess/src/authenticator_manager.cpp
> > Lines 77-81 (patched)
> > <https://reviews.apache.org/r/56474/diff/2/?file=1630603#file1630603line77>
> >
> >     I'm my C++ knowledge is correct, you don't need this block, doing:
> >     
> >     ```c++
> >     authenticators_[realm].push_back(authenticator);
> >     ```
> >     
> >     should be enough (from the [docs](http://en.cppreference.com/w/cpp/container/unordered_map/operator_at):
_"operator[] is non-const because it inserts the key if it doesn't exist. If this behavior
is undesirable or if the container is const, at() may be used."_)

No longer relevant, so dropping.


- Greg


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/56474/#review165304
-----------------------------------------------------------


On March 9, 2017, 11:43 p.m., Greg Mann wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/56474/
> -----------------------------------------------------------
> 
> (Updated March 9, 2017, 11:43 p.m.)
> 
> 
> Review request for mesos, Alexander Rojas, Jan Schlicht, Till Toenshoff, and Vinod Kone.
> 
> 
> Bugs: MESOS-7004
>     https://issues.apache.org/jira/browse/MESOS-7004
> 
> 
> Repository: mesos
> 
> 
> Description
> -------
> 
> This patch adds a new default authenticator, the
> `CombinedAuthenticator`, which can load multiple authenticators.
> It calls installed authenticators serially, returning the first
> successful result. When no results are successful, it returns a
> single result obtained by merging all unsuccessful results.
> 
> 
> Diffs
> -----
> 
>   include/mesos/authentication/http/combined_authenticator.hpp PRE-CREATION 
>   src/Makefile.am bb917c5d1b36f5106a74914fa3a864038a95e8bb 
>   src/authentication/http/combined_authenticator.cpp PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/56474/diff/3/
> 
> 
> Testing
> -------
> 
> Testing information can be found in the subsequent patch in this chain.
> 
> 
> Thanks,
> 
> Greg Mann
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message