Struggling with rspec test #253
Replies: 2 comments 4 replies
-
Hi, you're welcome!
Have you seen this wiki page? Rodauth doesn't currently have any testing helpers (aside for light controller test support), so you typically just have to make requests, and in your case forward the JWT token in the
You'd just use routing constraints, regardless of whether it's JWT or session cookie authentication: # config/routes.rb
Rails.application.routes.draw do
constraints Rodauth::Rails.authenticate do
mount Rswag::Ui::Engine, at: "/..."
end
end |
Beta Was this translation helpful? Give feedback.
-
so, with your help I've solved the rspec tests as for the
with
maybe here too I can use some of your methods? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your great work!
I migrated from Devise for the JWT feature (and i found here a lot of new great possibilities)
everything works well but I am struggling with
rswag-ui
authorization with JWTcan you address me to some related documentation? thanks
Beta Was this translation helpful? Give feedback.
All reactions