Awesome
Pragmatic Authentication Library: Cowboy example
The example using Pragmatic Authentication Library with Cowboy HTTP server.
Overview
The project contains examples of authentication via:
To execute the examples on the your local machine you need to:
- Register an Google application at Developers Console.
- Register an Facebook application at App Dashboard.
- Specify the
client_id
and theclient_secret
in therel/sys.config
for each provider.
Getting started
-
Build and start the application:
$ make && ./_rel/pal_example/bin/pal_example console
-
Open the URI in your browser:
- Google:
https://localhost:8081/examples/oauth2/google
- Facebook:
https://localhost:8081/examples/oauth2/facebook
- Google:
See pal project for more information.
License
The source code is provided under the terms of the MIT license.