0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Implement authorization header parsing

Basic HTTP authorization according to RFC 2617 is implemented.
Added an example of its usage with REST handler.
This commit is contained in:
Ivan Lisenkov 2013-01-30 00:30:05 +04:00
parent fd5a977a39
commit 54c6d3fa3a
11 changed files with 228 additions and 0 deletions

4
examples/basic_auth/start.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
erl -pa ebin deps/*/ebin -s basic_auth \
-eval "io:format(\"Get 401: curl -i http://localhost:8080~n\")." \
-eval "io:format(\"Get 200: curl -i -u \\\"Alladin:open sesame\\\" http://localhost:8080~n\")."