authn/noop flow?

Scott Koranda skoranda at gmail.com
Fri Feb 3 17:04:42 EST 2017


> On 2/3/17, 3:49 PM, "dev on behalf of Scott Koranda"
> <dev-bounces at shibboleth.net on behalf of skoranda at gmail.com>
> wrote:
>     
> >    Ah, yes. I will go look at that in detail again.
> 
> Possible caveat is that I think it has to perform a lot of
> logic that the default function is doing to keep things
> working like they should so it might be a little low-level
> for routine use. It's definitely more amenable to Java and
> not a script.
> 
> Arguably, the use case you mentioned is really one for the
> IPAddress flow itself. If you controlled it sufficiently,
> couldn't you attach the right context class principal to
> that flow and just have your rule run that flow to
> essentially *be* a no-op?

Yes. I was quickly thinking about how I would produce an
object with a Map interface that I could just inject. That
would do the trick.

> I guess one problem with that is that it produces a
> UsernamePrincipal that would collide with the Password flow.

I was hoping that the object would simply get the
UsernamePrincipal from the Password flow and then map
the IP address to that user.

> You'd still end up needing a custom merge to strip that
> dummy username out or it would cause hassle downstream.
> Would be easy to maybe add an option to the IPAddress flow
> to control whether to include that principal. Might be more
> useful than a truly no-op flow.

An option to inject something other than a Map would be nice
too.

Thanks again,

Scott K


More information about the dev mailing list