All Questions
Tagged with activeadmin devise
238 questions
0
votes
0
answers
41
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
0
answers
73
views
How to Expire Session IDs in Cookies for Active Admin?
I'm facing an issue with the session management in my web application. I've noticed that the session ID stored in a cookie doesn't seem to expire, which poses a security risk. If someone obtains this ...
0
votes
1
answer
219
views
Adding Activeadmin to existing rails 6 Api with devise already installed
Hey I have a rails api app with devise and jwt installed already and working perfectly fine.
I installed activeadmin to handle data management but when i try to navigate to /admin i get a message on ...
1
vote
2
answers
485
views
Uninitialized constant Devise::SessionsController after upgrade
I have a rails 5.2 application that was built on ruby 2.7.1, devise 4.7.2, and activeadmin 2.9.0. I want to update it to the current versions. When I update ruby to 3.2.1, rails to 7.0, devise to 4.9....
0
votes
1
answer
345
views
ActiveAdmin over ride after_sign_in_path_for method
I am using Devise gem for Authentication and ActiveAdmin gem which also uses Devise gem as dependency. I want to enable 2FA for ActiveAdmin, that's why I want to over ride after_sign_in_path_for ...
3
votes
3
answers
2k
views
Active Admin login not working (Devise + ActiveAdmin + Devise JWT)
I'm using rails in API mode, with Devise and Devise JWT (for the API), and ActiveAdmin. I had everything working but I've been building out the API controllers and now ActiveAdmin auth is broken and I ...
1
vote
1
answer
2k
views
request.env['omniauth.auth'] is getting nil
So I was trying to set up Google Omniauth2 authentication in Active Admin in Ruby on rails, my after the user clicks on his account on the google signup dialogue box it gets redirected to root_path
i....
1
vote
4
answers
873
views
Active Admin won't redirect to login for unauthorized user
When I try to access localhost:3000/admin. I just get a message "You need to sign in or sign up before continuing.". I am expecting to be redirected to the login page if I am not currently ...
1
vote
2
answers
862
views
Extending Rails Application Controllers for Active Admin and devise_token_auth
I am trying to implement both devise_token_auth and Active Admin in my rails api back-end.
There are pretty clear instructions on the devise_token_auth FAQ explaining how to implement the two together ...
1
vote
1
answer
618
views
Active Admin with devise multiple user roles
I was wondering how can I create a smooth flow of user roles with Active Admin and devise.
I need to create 3 roles: user, moderator, administrator
I saw this post here:
https://github.com/heartcombo/...
3
votes
0
answers
1k
views
Devise login responses with 302 found status
I have implemented a devise setup. Earlier it was working fine, was sending response 200 ok and was redirecting to the mentioned_path.
Now(after cloning into another machine) on login it always ...
0
votes
0
answers
107
views
How to edit own profile in activeadmin and devise?
I tried to search the answer in many resources but could not find it. Also could not see it in routes.
I have:
devise_for :admin_users, ActiveAdmin::Devise.config
ActiveAdmin.routes(self)
0
votes
1
answer
347
views
ActiveAdmin and Warden route constraint
We recently updated to ActiveAdmin 1.1.0, on a site which maintains two distinct user models - Users and AdminUsers. ActiveAdmin authenticates AdminUsers, and the rest of the site authenticates Users. ...
0
votes
1
answer
891
views
Auth0 in Rails with devise has nil in the request.env['omniauth.auth']
I'm setting up a rails app that has Active Admin using devise and I'm trying to add an OmniAuth authentication using Auth0.
I've installed the gem 'omniauth-auth0', '~> 2.2'.
I've added the ...
1
vote
1
answer
738
views
ActiveAdmin redirect after login doesn't work
For some reason ActiveAdmin returns same login page after successful login:
I thought it's something related with "cancancan" or "acts_as_tenant" so I tried to remove it but it doesn't helped.
I don'...
1
vote
0
answers
507
views
How to seperate two devise logins from user and admin
I have a User model which i have used devise for authentication and then i installed active admin gem. It creates another login. My problem is that when i try to go into localhost:3000/admin it first ...
2
votes
1
answer
586
views
Active Admin logout redirect loop
I've installed Active Admin, Devise and CanCan, plus configured the CanCan adapter (as per the instructions on Active Admin's wiki). The problem I have is that when the user logs out, the system doesn'...
1
vote
1
answer
235
views
Ruby on Rails will not register active_admin upon server startup (http://localhost:3001/admin)
I am currently creating my first React-on-Rails project. I have an issue with loading the server when trying to run the RoR api.
Application.rb
require_relative 'boot'
require "rails"
#...
0
votes
2
answers
298
views
ActiveAdmin logging out automatically after password change
The title says it all, basically I'm facing the same problem as here, but I'm using ActiveAdmin and I can't fix this problem.
I've tried adding:
controller do
def update
if current_account....
0
votes
0
answers
416
views
How to use devise_invitable properly with activeadmin ? (issues to send emails)
I am building an app in rails with an admin interface using the activeadmin gem. I have a User model, an Organization Model and an Account Model (polymorphic). A same user can have different types of ...
4
votes
4
answers
4k
views
ActionController::InvalidAuthenticityToken in ActiveAdmin::Devise::SessionsController#create
I'm using Ruby on Rails 5 Api app with modification to enable Active Admin.
Everything was fine until now. I don't remember doing any changes in the app, but now, if I delete cookies and etc on the ...
0
votes
0
answers
96
views
Restrict access to admin/* sites with cancan
I'm building an app which have two user models: user and user_admin, user_admin is provided with activeadmin via devise and user was created with devise too. I created main page, some resources, and ...
1
vote
1
answer
465
views
Logout path not working in activeadmin even after modifying the path in active_admin.rb
In my admin panel the logout link is not working. In my project I have removed the default admin user that is generated while installing the active admin and used the role from profile model to sign ...
1
vote
1
answer
698
views
Devise and Active Admin using a single model error
My application requires a single model for both Devise and Active Admin for the User and I want to distinguish the super admin, admin and user based on the role which is present in the Profile model ...
0
votes
1
answer
460
views
ActiveAdmin error 401 Can no longer log in with working credentials. Using rails 5.2
I created an ActiveAdmin user and I can no longer log on using any of my previous ActiveAdmin users nor can I create a new one. When I try, I get a 401 error. I have tried multiple times to manipulate ...
0
votes
2
answers
456
views
ActiveAdmin admin_users table devise users table logging in issue
Following is my setup
devise (4.4.3)
activeadmin (1.3.0)
Rails 5.2
I created a user table with devise. installed active admin and used the normal method and created admin_users table. NO I AM NOT ...
1
vote
1
answer
2k
views
ActiveAdmin & devise user registration
I'm new to rails and ActiveAdmin. I'm trying to create a sign up page for ActiveAdmin.
First, I rails generate devise:views
Second, I change my routes.rb:
# not devise_for :admin_users, ActiveAdmin:...
1
vote
1
answer
1k
views
Filtering dropdown when creating a new item in Active Admin Rails
I have a Rails 5 Application that uses Devise for registrations and sessions via the standard User Model. I also have Rolify integrated with two types of roles (student,teacher).
class User < ...
0
votes
0
answers
507
views
Active Admin: A copy of the applicationController has been removed but is still active
Stack overflow - I've recently migrated to Active Admin because I needed a quick way to build a solid Admin backend - Unfortunately I am not able to totally make heads or tails of this error.
I ...
0
votes
1
answer
305
views
Unpermitted parameter ActiveAdmin Devise Rails
I both added username on signup page form and added the same name table column on MySQL database, however, when I click the sign up button, the error message appears and it's never inserted into the ...
1
vote
1
answer
331
views
Redirect issue with admin login using ActiveAdmin in rails app
I'm using devise and activeadmin.
When I log in to my app as an Admin (http://localhost:3000/users/admin) the app redirects me to to the http://localhost:3000/users/sign_in page.
So basically I have ...
0
votes
1
answer
1k
views
NoMethodError in ActiveAdmin::Devise::Sessions#new when logging in as Admin
I'm using ActvieAdmin for the backend of my app.
I did following changes to let my users use their username to sign up to their account.
in config/initializers/devise.rb I changed config....
1
vote
3
answers
766
views
How to edit user id in rails application
Right now for my rails app (using devise and active admin), I am having user ids as serial numerals depending upon the serial of user id creation, i.e. first time I got user id 1, then again signed ...
0
votes
0
answers
93
views
rails devise active admin add user from dashboard for different user mdel
I am trying to to add User model inside active admin module. Here I am using Devise gem for my user registration. Here my user table and admin users are different
I have created an active admin ...
1
vote
0
answers
2k
views
Overriding active admin session controller
I need to add two factor authentication for active admin.
Whenever admin tries to login I need to verify them before giving access. Verification can be done either by sending OTP to email or mobile.
...
0
votes
0
answers
690
views
Rails/Active Admin: redirections on update users reroot to localhost
I'm using Rails 5.1.4 with ActiveAdmin. The admin interface is basic and I haven't customized it a lot. It is used only to managed users on my website (reset passwords in case, ban, add etc.). ...
0
votes
1
answer
2k
views
ActiveAdmin with devise
I have a project using devise_token_auth for authentication. I have installed Active Admin following this.
When I try to access localhost:3000/admin I get You need to sign in or sign up before ...
1
vote
2
answers
1k
views
Unable to use devise_token_auth with active_admin
I'm trying to used devise_token_auth with active_admin. When running rails g active_admin:install User I get the following error.
error
usr/local/lib/ruby/gems/2.4.0/gems/actionpack-5.1.4/lib/...
5
votes
1
answer
2k
views
Activeadmin : undefined method `access_denied'
I use rails 5.0
cancan 1.6.10
devise 4.2.0
Activeadmin
I regulary have this error in newrelic :
NoMethodError: undefined method `access_denied' for #<Admin::FollowupsController:0x007f112917d270&...
1
vote
1
answer
976
views
NoMethodError undefined method `admin?' for nil:NilClass Pundit, Devise Rails
I'm trying to integrate pundit with my active admin and devise configuration. But the app works weirdly. It takes in model/record as current_user.
my policy file:
class AdminUserPolicy
attr_reader ...
1
vote
1
answer
1k
views
Unable to use CanCanCan with ActiveAdmin and Devise undefined method `dashboards' for #<AdminUser>
I'm constructing an admin panel with active admin
I've installed the three gems
gem 'activeadmin', github: 'activeadmin'
gem 'devise'
gem 'cancancan'
I set it up as follows:
rails g active_admin:...
1
vote
1
answer
840
views
ActiveAdmin Not Working Without Devise
So we just went through the process of removing Devise and rolled out simple bcrypt + cancancan auth system.
Now we are also using ActiveAdmin as our solution for admin part of the web app, which was ...
1
vote
1
answer
409
views
How to test activeadmin AuthorizationAdapter?
I have a custom AutorizationAdapter that I would like to test using RSpec:
class AdminAuthorization < ActiveAdmin::AuthorizationAdapter
def authorized?(_action, _subject = nil)
user.admin?
...
0
votes
1
answer
1k
views
Rails 5.1 Installing ActiveAdmin without Devise and a custom User model
So I have a question, about using ActiveAdmin without Devise, the documentation is not clear on this for my needs and I see a lot of people not answering this question clearly. And to be clear, I am ...
0
votes
2
answers
2k
views
How to change the default layout for the active admin in ruby on rails?
I am new in ruby and generated an admin panel using devise and active admin but I want to change the default layout and design of whole active admin. I have researched this but mostly information is ...
1
vote
1
answer
190
views
Devise store email for user on separate contact table
Currently the default Devise generates a user model with an email, the issue is that this would duplicate data. This is because I'm having a contacts table (which has email on it) and the idea is that ...
0
votes
2
answers
330
views
Getting DoubleRenderError when doing `update_resource` for devise within ActiveAdmin
I'm trying to allow devise's user account to be updated without requiring the password to be changed every time you change a user account. To do this requires me to change the update_resource method ...
1
vote
2
answers
295
views
duplicate error in migrating on rails with activeadmin and devise
I'm trying to install activeadmin on rails with devise.
I added gemfile and ran
rake db:migrate
and i met these errors.
== 20170821153121 DeviseCreateAdminUsers: migrating =========================...
1
vote
1
answer
782
views
ActiveAdmin with Rails 5 API mode
I'm trying to get activeadmin working with Rails 5 API mode. There's several articles about this, and they pretty much all say the same thing.
First, make the application controller extend from ...
3
votes
1
answer
935
views
Rails 4 ActiveAdmin CSV export yields "You are not authorized to perform this action." in browser
I am using "out of the box" installations of Devise gem and ActiveAdmin gem in my Rails 4 project. I have an ActiveAdmin model that works fine as an index page on the ActiveAdmin page. I set up CSV ...