[99s-extend] cowboy client cert auth, basic auth
Loïc Hoguin
essen at ninenines.eu
Wed Jun 4 23:48:01 CEST 2014
On 06/04/2014 10:08 PM, Daniel Goertzen wrote:
> I am having very good luck with Cowboy so far, but I have some questions:
>
> 1. There doesn't appear to be any way to do client certificate
> authorization in Cowboy, although I see there is an example for doing
> exactly that with Ranch. I think I could modify Cowboy to do what I
> want, but I thought I would ask if there were other options before doing
> that.
Same as Ranch really, you just gotta take the socket and then call the
ssl functions.
> 2. I am also looking at http basic auth. Would creating a middleware to
> sit in between cowboy_router and cowboy_handler be a typical way to go
> about it?
That's a common way to do it yes.
--
Loïc Hoguin
http://ninenines.eu
More information about the Extend
mailing list