Rails Authentication
Ruby gem for authentication in a rails app
Creating a new Rails app
- Use Repository Dashboard to create a new repository with the rails-template.
- Navigate to the repo folder in a terminal and execute
rails g strongmind:install
- Move app root to authenticated root in routes. Should look like this:
ruby authenticated :user do root to: 'home#index' # or whatever makes sense for your app end
- Create a new client in identity server and
IDENTITY_CLIENT_ID
andIDENTITY_CLIENT_SECRET
values to .env file. - Execute
rails dev:cache
to turn on caching in development. - Execute
bin/dev