14,997 questions
3
votes
1
answer
133
views
Rails8/Devise custom action found in routes, but 404 when called
I'm extending the Devise invitations controller to lookup the email of the invitee to pre-populate the registration form. I'm getting an error:
#<AbstractController::ActionNotFound: "Could not ...
0
votes
0
answers
70
views
setting up an ActionCable connection using Devise
It is somewhat unclear to me given the rails guide instructions how to define the verified_user. The documentation suggests:
if verified_user = User.find_by(id: cookies.encrypted[:user_id])
if ...
0
votes
1
answer
93
views
Rails API issue with devise routes
I am creating an api in rails and I am implementing the authentication with devise gem. Right now I am creating a custom verify endpoint but I am getting the following error:
Unknown action
Could not ...
0
votes
0
answers
110
views
Rails API: Devise/Warden intercepts API requests causing "No Failure App provided" error
I’m working on a Rails 8 API application where I have separated API routes from my admin panel:
namespace :api do
get 'test', to: 'clerk_test#index'
end
devise_for :admin_users, ActiveAdmin::Devise....
0
votes
1
answer
78
views
How do I scope devise user authentication to a group/organization
I am building an app using Ruby on Rails and devise for user authentication. I have a top level user that can create groups and then users can create accounts inside of the group I already have this ...
0
votes
1
answer
75
views
Nested user model scoped inside of a module and devise routes
I'm trying to add a second user model with devise my original model was User and I was able to add the routes by doing
devise_for :users
Now I have a nested situation where there is a nested user ...
1
vote
1
answer
83
views
Devise Token Auth confirmation link returns 500 error in production (AWS Fargate + Nginx + Rails)
I'm building a single-page application using Devise and Devise Token Auth for authentication. Everything works fine in development, but in production, clicking the email confirmation link results in a ...
1
vote
1
answer
61
views
Error when logging out user session with Ruby API
I'm working on user authentication with Devise, and decided to use session-based authentication for testing my API user login and logout functionality. At the moment the login works, but the logout ...
0
votes
0
answers
80
views
After Rails update from 6 to 7, Devise flash messages are not available anymore (Turbolinks disabled)
My Rails app uses Devise (4.9.4) and CanCanCan (3.6.1). I just updated it to version Rails version 7. Since then, the flash messages do not appear anymore when registering as a new user.
I have found ...
0
votes
0
answers
48
views
non-standard way of logging in user with devise (including confirmable)
An application has the motive to register a user via a distinct process that diverges from the one defined by default by devise (invoking the registrations_controller).
The process would be to
create ...
0
votes
1
answer
42
views
Redirect takes desktop viewport after successful google oauth login
I am using Devise for google oauth. When I sign in via mobile on web browser, after successful authentication I get redirected with desktop view.
class Reactors::OmniauthCallbacksController < ...
0
votes
2
answers
596
views
Recaptcha "ERROR for site owner: Invalid key type"
I created a reCAPTCHA v3 key in Google Console.
But in Rails I use:
<%= recaptcha_tags %>
Error:
ERROR for site owner: Invalid key type
Is recaptcha_tags only for v2?
How do I configure v3 ...
1
vote
1
answer
91
views
devise and language by multiple domain
I'm trying to use multi language by domain, for example I have domain.fi.local for language Finnish and domain.es.local for language Spanish and on every of them you can switch to English and I have ...
0
votes
1
answer
61
views
Devise send_reset_password_instructions invalid token in Active Admin Rails
I have this problem in ActiveAdmin. When I try to reset a user's password with devise send_reset_password_instructions.
member_action :reset_password, method: :get do
resource....
0
votes
1
answer
41
views
Cucumber Devise login via remote Selenium chromium not working
Context: I set up a new system using rails-new into a devcontainer. So the dev environment is running inside docker. I'm using a dockerised Selenium Chromium to run my tests. I'm using Devise for ...