Sha256: e51aba65c9b926870bc8c76da4c1b47185357ad7f7ceef1548c237b9e4068909
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
#Auth0 + Ruby on Rails WebApp Seed This is the seed project you need to use if you're going to create a regular WebApp with Ruby on Rails. If you want to build a Ruby On Rails API that will be used with a SPA or a Mobile device, please check this [other seed project](https://github.com/auth0/ruby-auth0/tree/master/examples/ruby-on-rails-api) This example is deployed at Heroku at http://auth0-ror-webapp-sample.herokuapp.com/ #Running the example In order to run the example you need to have ruby installed. You also need to set the ClientSecret, ClientId, Domain and CallbackURL for your Auth0 app as enviroment variables with the following names respectively: AUTH0_CLIENT_SECRET, AUTH0_CLIENT_ID, AUTH0_DOMAIN and AUTH0_CALLBACK_URL. For that, if you just create a file named .env in the directory and set the values like the following, the app will just work: ````bash # .env file AUTH0_CLIENT_SECRET=myCoolSecret AUTH0_CLIENT_ID=myCoolClientId AUTH0_DOMAIN=samples.auth0.com AUTH0_CALLBACK_URL=http://localhost:3000/auth/auth0/callback ```` Once you've set those 4 enviroment variables, just run `rails s` and try calling [http://localhost:3000/](http://localhost:3000/)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-auth0-1.4.0 | examples/ruby-on-rails-webapp/README.md |