[99s-extend] cowboy client cert auth, basic auth
Loïc Hoguin
essen at ninenines.eu
Thu Jun 5 10:04:08 CEST 2014
On 06/05/2014 01:44 AM, Daniel Goertzen wrote:
>
>
>
> On Wed, Jun 4, 2014 at 4:48 PM, Loïc Hoguin <essen at ninenines.eu
> <mailto:essen at ninenines.eu>> wrote:
>
> 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.
>
>
> Yes, but in cowboy there's no API to get at the socket.
There is the undocumented function cowboy_req:get/1 which is meant for
that kind of "special" use.
--
Loïc Hoguin
http://ninenines.eu
More information about the Extend
mailing list