This is a simple application that demonstrates how to use Oauth0 to authenticate users.
To get started, you need to create an account on Oauth0 and create an application. You will need to set the following environment variables:
OAUTH0_DOMAIN
: The domain of your Oauth0 accountOAUTH0_CLIENT_ID
: The client ID of your Oauth0 ApplicationOAUTH0_CLIENT_SECRET
: The client secret of your Oauth0 application
Once you have set these environment variables, you can run the application using the following command:
$ touch .env
To install the dependencies, run the following command:
$ bundle install
This app uses the following gems:
lennarb
for the web routerphlex
for rendering viewsrack-protection
for securitydry-configurable
for configurationdry-system
for dependency injectiondotenv
for loading environment variablesomniauth
for many authentication strategiesomniauth-auth0
for authenticating users with Oauth0
$ bundle exec rackup -p 3000
You can now access the application by visiting http://localhost:3000 in your web browser.
This project is licensed under the MIT License - see the LICENSE.md file for details.