mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 13:10:24 +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:
parent
fd5a977a39
commit
54c6d3fa3a
11 changed files with 228 additions and 0 deletions
15
examples/basic_auth/src/basic_auth.app.src
Normal file
15
examples/basic_auth/src/basic_auth.app.src
Normal file
|
@ -0,0 +1,15 @@
|
|||
%% Feel free to use, reuse and abuse the code in this file.
|
||||
|
||||
{application, basic_auth, [
|
||||
{description, "Cowboy Basic HTTP Authorization example."},
|
||||
{vsn, "1"},
|
||||
{modules, []},
|
||||
{registered, []},
|
||||
{applications, [
|
||||
kernel,
|
||||
stdlib,
|
||||
cowboy
|
||||
]},
|
||||
{mod, {basic_auth_app, []}},
|
||||
{env, []}
|
||||
]}.
|
Loading…
Add table
Add a link
Reference in a new issue