Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 2.59 KB

README.md

File metadata and controls

78 lines (55 loc) · 2.59 KB

Überauth Example

Using Überauth for authentication in Phoenix.

This project demonstrates how to use Überauth and multiple strategies to provide authentication for a Phoenix application. The project has been setup to run on Heroku can can be found at ueberauth-example.herokuapp.com.

In this example we'll use three strategies:

Setup

  1. Retrieve app ids and secrets and set environment variables:

  1. Clone the project:

    $ git clone [email protected]:ueberauth/ueberauth_example.git
    $ cd ueberauth_example
  2. Fetch dependecies:

    $ mix deps.get
  3. Run server:

    $ mix phoenix.server
  4. Authenticate at http://localhost:4000!

Configuration

See Überauth for detailed instructions.

Contributing

Contributions are welcomed and encouraged. Please make appropriate use of Issues and Pull Requests.

License

The MIT License (MIT)

Copyright (c) 2015 Sean Callan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.