Rodauth and rails without rodauth-rails #477
Replies: 2 comments 2 replies
-
Unfortunately, I don't have enough knowledge of Rails or Trailblazer to give an educated answer on what path would be best. @janko what you would recommend in this case? |
Beta Was this translation helpful? Give feedback.
-
You can use Rodauth as a library with rodauth-rails – https://github.com/janko/rodauth-rails?tab=readme-ov-file#using-as-a-library. I still recommend using rodauth-rails instead of vanilla Rodauth, because it provides some defaults that are better for Rails apps (such as using Action Mailer for emails). The setup outlined in the link will skip inserting the Rodauth app into the middleware stack. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I’ve been playing a bit with rodauth in a pet project with rodauth-rails but I am thinking if I can use rodauth core authentication logic in a rails project by defining myself routes and not use roda app.
I ask this because I would like to handle all the request flow using trailblazer operations.
Is it possible to do this? I’ve read in the docs that Rodauth can be used in that way with :internal_request feature.
Do you think I should forget about this and only use in the way that rodauth-rails suggest?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions