headwayio / voyage

A Rails template with our standard defaults, ready to deploy to Heroku. **See readme in: lib/voyage/README.md**
https://headway.io/voyage
MIT License
0 stars 1 forks source link

Authentication Fix #30

Closed GeekOnCoffee closed 6 years ago

GeekOnCoffee commented 7 years ago

app/controllers/application_controller.rb

TODO: (2017-06-21) jon => port this unless: -> to voyage. This is why it redirects to the sign all the time before displaying the welcome.

acts_as_token_authentication_handler_for User, unless: -> { is_a?(HighVoltage::PagesController) }

noahsettersten commented 6 years ago

When we integrate the tiddle gem for Voyage, this will replace this handler as well as a few other logic flows in the app. We've moved all of our APIs to this gem instead since it's offers more robust handling of authentication while still using basic token auth.

Closing this in favor of #28

GeekOnCoffee commented 6 years ago

👍