Skip to content

manifest/pal-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pragmatic Authentication Library: Cowboy example

The example using Pragmatic Authentication Library with Cowboy HTTP server.

Overview

The project contains examples of authentication via:

  • Google
  • Facebook

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 the client_secret in the rel/sys.config for each provider.

Getting started

  1. Build and start the application:

     $ make && ./_rel/pal_example/bin/pal_example console
    
  2. Open the URI in your browser:

    • Google: https://localhost:8081/examples/oauth2/google
    • Facebook: https://localhost:8081/examples/oauth2/facebook

See pal project for more information.

License

The source code is provided under the terms of the MIT license.

About

Pragmatic Authentication Library: example

Resources

License

Stars

Watchers

Forks

Packages

No packages published