15,007 questions
3
votes
1
answer
101
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
1
answer
74
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
1
answer
60
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 ...
1
vote
1
answer
71
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 ...
0
votes
0
answers
67
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
1
answer
35
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 < ...
1
vote
1
answer
79
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
30
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 ...
1
vote
0
answers
110
views
Rails 7 with Device Token Auth (1.2.5) Returns Completed 401 Unauthorized after Successfully Login
I'm currently using Rails 7 and devise_token_auth (1.2.5). We use all the default settings from devise_token_auth and it's been working perfectly.
Here is our session controller code:
class Api::V1::...
0
votes
0
answers
78
views
Adding custom parameters to devise registration - Insert is not complete
I'm trying to add some customs parameters to a devise class. I configured registrations_controller with the method:
def configure_sign_up_params
devise_parameter_sanitizer.permit(:sign_up, keys: ...
-3
votes
1
answer
124
views
Rails Devise Strong Parameters not building Nested Association
I did generated devise controllers and views and defined both User and Account models like the following:
User
class User < ApplicationRecord
# Include default devise modules. Others available ...
0
votes
0
answers
43
views
RSpec: login_as not working after switching to shallow nesting
I'm switching to shallow nesting of Assets (belonging to Entity), and I'm rewriting request specs.
For the new shallow routes (e.g. '/assets/1', which was '/entities/1/assets/1'), login_as fails. It ...
0
votes
0
answers
80
views
Devise and authenticity_token problem in production
I have trouble making Devise work in production. When I try to register/login, the following error message appears in the logs:
INFO -- : [] Started POST "/users" for x.x.x.x at 2024-10-25 ...
0
votes
0
answers
152
views
401 when authenticating swift client with rails API (using Devise)
I have a Rails API using Devise JWT for authentication.
When trying to login using Postman it works like a charm:
But when I call from my Swift app, I have a 401 Unauthorized with invalid credentials....
0
votes
1
answer
81
views
No route matches [GET] "/users/sign_out" i can delete my account but not log out
Here is my error:
No route matches [GET] "/users/sign_out"
and this is all routes :
Prefix Verb URI Pattern ...
0
votes
0
answers
68
views
ActionController::InvalidAuthenticityToken Error with domain: ':all' in Rails Session Store
I’m encountering an ActionController::InvalidAuthenticityToken error in my Rails application when using the session store configuration with domain: ':all'. The issue appears specifically when setting ...
0
votes
1
answer
91
views
Devise unable to find_for_authentication
Having upgraded Rails from 7.1.4 -> 7.2.1 users can't log in any more. Strangely, this only appears to affect development mode. The problem appears to be caused when the sessions controller calls:
...
0
votes
1
answer
59
views
errbit container running http, nginx reverse proxy redirecting https to http, cannot login
I have a very simple setup using an Errbit container running on http and an nginx reverse proxy that takes https and redirects it to the Errbit container using http (config file see below). I can not ...
1
vote
1
answer
47
views
Checking if authentication in required on a page using Rails and Devise
I have a Rails 6.1 application that uses Devise for authentication.
In my application_controller.rb I by default require authentication on all pages:
class ApplicationController < ActionController::...
1
vote
0
answers
121
views
Trouble Configuring SAML Authentication in Rails with Devise: Signature Verification Failure
I am currently integrating SAML authentication into a Ruby on Rails application using the Devise SAML Authenticatable gem, and I've encountered a significant challenge regarding the signature ...
0
votes
1
answer
124
views
Rails 7 devise lockable + paranoid not displaying lock message
In my Rails 7 Ruby 3.2.1 app, I'm using Devise and devise-security gems with the paranoid settings enabled (config.paranoid = true). Since a pentest report arrived on my table, I now need to lock a ...
1
vote
1
answer
88
views
Devise Tiemout - Are cookies the only way of passing params after a timeout?
I can not believe it is not possible to pass parameters to Devise's timeout method... so I hope someone can enlighten me.
I have a Rails application with two mountable engines: A and B. Both engines ...
0
votes
1
answer
98
views
Ruby on Rails - Server Memory Spiking and Users getting logged out
We have a fairly typical Ruby on Rails 6.1 app with a Redis cache store which we are also using for our session store. We are using Devise and an single-page app with lots of graphql requests.
...
0
votes
1
answer
23
views
Blocking the possibility of logging in if the user is not in the database - Rails Devise
I'm using Devise and devise_ldap_authenticatable to allow users to login. I'm using only session controller
class Users::SessionsController < Devise::SessionsController
layout 'landing'
...
0
votes
1
answer
222
views
Expo Auth Session with Doorkeeper custom oAuth provider & devise
Using expo-auth-session for authentication in a react native app, the browser will open for you to login and you may notice it doesn't close on login/sign up - you may then try to login again and ...