Re: [EXT] [akka-user] Re: has anyone attempted a multi-source authentication?

2017-05-24 Thread Andrew Norman
; <johannes.rudo...@lightbend.com> Reply-To: "akka-user@googlegroups.com" <akka-user@googlegroups.com> Date: Monday, May 22, 2017 at 5:11 AM To: Akka User List <akka-user@googlegroups.com> Subject: [EXT] [akka-user] Re: has anyone attempted a multi-source authenticatio

[akka-user] Re: has anyone attempted a multi-source authentication?

2017-05-22 Thread johannes . rudolph
Hi Andrew, here's a general idea at how it could work: If you model each authentication method as a `Directive1[Session]` that returns the session (or user, principal, etc.) for that authentication method and all of the directive return the a value of the same type or a type with a common