Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aristotelesbr/auth0-application
https://github.com/aristotelesbr/auth0-application
auth0 dry-rb lennarb plhex ruby
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/aristotelesbr/auth0-application
- Owner: aristotelesbr
- Created: 2024-05-06T01:30:04.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-05-06T01:30:12.000Z (6 months ago)
- Last Synced: 2024-10-02T06:22:46.300Z (about 1 month ago)
- Topics: auth0, dry-rb, lennarb, plhex, ruby
- Language: Ruby
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Oauth0 Application
This is a simple application that demonstrates how to use Oauth0 to authenticate users.
## Getting Started
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 account
- `OAUTH0_CLIENT_ID`: The client ID of your Oauth0 Application
- `OAUTH0_CLIENT_SECRET`: The client secret of your Oauth0 applicationOnce you have set these environment variables, you can run the application using the following command:
```bash
$ touch .env
```## Install Dependencies
To install the dependencies, run the following command:
```bash
$ bundle install
```### Gems
This app uses the following gems:
- `lennarb` for the web router
- `phlex` for rendering views
- `rack-protection` for security
- `dry-configurable` for configuration
- `dry-system` for dependency injection
- `dotenv` for loading environment variables
- `omniauth` for many authentication strategies
- `omniauth-auth0` for authenticating users with Oauth0## Run the Application
```bash
$ bundle exec rackup -p 3000
```You can now access the application by visiting [http://localhost:3000](http://localhost:3000) in your web browser.
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.