Tag: rails
-
Rails/Devise authenticating using AWS/Cognito Identity
Background For a while now, I’m developing a sort of IoT controller with Rails 4. Until now, Devise was used to authenticate users locally using the Devise’s provided :database_authenticable module. Things changed recently, and I had to move some features of this IoT controller toward AWS. Authentication against AWS/Cognito Identity is one part of the project. “But Why?” you might…
-
Let’s encrypt (il buono), rails (il brutto) and heroku (il cattivo)
This article is just paraphrasing this one with a bit more accuracy, corrections and cynicism. First step: Update your rails code on heroku The route /.well-known/acme-challenge/KEY should be added to your config/routes.rb file like so get ‘/.well-known/acme-challenge/:id’ => ‘CONTROLLER#letsencrypt’ where CONTROLLER is the controller of your choice, in which the method should look like this def letsencrypt…