Re: [akka-user] How to call a Future-based test from a Route?

2016-12-31 Thread Alan Burlison
> Have you seen the complete list of directives? > There's many directives with "Async" that means that they work on Futures. I've seen the async authorization directives but none of them fit the header mechanism I'm trying to emulate. authenticateOrRejectWithChallenge() seems to come closest but

Re: [akka-user] How to call a Future-based test from a Route?

2016-12-31 Thread Konrad Malawski
Have you seen the complete list of directives? There's many directives with "Async" that means that they work on Futures. http://doc.akka.io/docs/akka-http/10.0.1/scala/http/routing-dsl/directives/alphabetically.html -- Konrad `ktoso` Malawski Akka @ Lightbend

[akka-user] How to call a Future-based test from a Route?

2016-12-31 Thread Alan Burlison
I need to provide a REST service that provides HTTP header based authentication as well as standard Basic HTTP authentication. There are two header-based mechanisms, one uses a user/pass header pair and the other uses a session header. I'm struggling to figure out how to combine all three