0
votes
2answers
25 views

signed-in User can't seem to be signed-in

I used the M. Hartl Rails Tutorial to create my app. So I have a User model, and all current_user and signed_in_user methods. I want to make the following test pass : describe "submitting a ...
0
votes
1answer
15 views

Authenticating to devise

I want to be able to simply determine if a user credentials are correctly supplied in an iOS app I'm creating. The way I have it setup now is with a sessions_controller.rb that handles and returns a ...
0
votes
1answer
21 views

Automatically Create Guest User With Rails

I followed Railscast #393 to implement guest users into my application. The only problem I'm having with this approach is that it requires the user to still click a button to create the user (albeit ...
0
votes
1answer
14 views

Rails Gem to Activate selected users on sign up?

I am working on a web portal and want to implement a signup mechanism , where a people with certain qualities would be activated to use the portal. Here are 2 things I am looking for : 1] ...
0
votes
2answers
19 views

Rails ActiveRecord: default scope on logged-in user

I have a Post model that is associated to users (think of 'post owner'). class Post < ActiveRecord belongs_to :user (...) end In my Post#index action/view, I want to only display posts that ...
0
votes
1answer
12 views

auth helper methods using application_controller or helper file

I want to create my authentication system from scratch and I'm not really looking for debate in this area. My question is should I be using a helper file to provide methods such as current_user and ...
0
votes
0answers
29 views

Devise authenticate is redirected to sign in page for both GET and POST method for the same URL?

I am creating an application using devise authenticate with a route like: "/product/register" I need it to do both GET and POST methods from the form. For that I defined in my route: match ...
0
votes
1answer
25 views

Devise not redirecting where I would expect

Just migrated from Authlogic to Devise, and having a redirect issue. I have the following: root :to => "welcome#index" authenticated :user do root :to => "dashboard#show" end ...
0
votes
0answers
14 views

Security solution for a site with admin but no regular users

I'm creating a rails app without regular users but with an admin who can enter a secure area to post content/moderate/edit settings. Therefore a fully fledged user authentication / authorisation ...
0
votes
0answers
7 views

Devise BCrypt error after migrating from Authlogic

I have just started migrating my code from Authlogic to Devise. I have added the following to Devise.rb initializer: config.encryptor = :authlogic_sha512 while also changing this line: ...
1
vote
0answers
42 views

What do I need to properly implement a single sign-on with a legacy authentication rest API?

overview I have a legacy php system that is used for user management and authentication. It has a restful api to authenticate users. I say legacy because I do not believe the API adheres to modern ...
0
votes
0answers
23 views

Rails: Devise logs out all users on unauthenticated api call

Using devise 3.1.0 and Rails 4 If a user sign's in though the browser everything is working fine Then if a request is made the api to sign in curl -X POST -H "Content-Type: application/json" -d ...
0
votes
1answer
28 views

how to secure or set a rails style before_filter for all angular controllers?

I'm using angularjs for the front end and rails + devise for authentication on the backend. On the front end I have added a responseInterceptor to redirect to the /#/sign_in page upon any 401 ...
0
votes
0answers
21 views

Devise Login Not Processing

So I've got an app using Devise in which the sign up (registrations#create) is functioning, however the sign in (sessions#create) is not working whatsoever. First off, none of the validation errors ...
0
votes
2answers
14 views

link requires id but is nil when signed out and created error

I have a nav bar that appears on every page of my website. There is a link in the navbar like this: <%= link_to 'Publish' , new_user_comic_title_path(user_id: current_user.id) %> I am using ...
0
votes
1answer
46 views

Devise asks for confirmation before accepting invitation

I am creating a module in my rails application for "adding team members" to a project. And im using devise_invitable. In this if i add a new email address both the confirmation mail and invitaion ...
1
vote
0answers
30 views

Rails application architecture decision, when creating an app with an api, authentication and a main application

We are planning to create a web application in rails. We came up with two different ideas for the structure: Hence we do not have a lot of experience with rails applications we are not sure which ...
0
votes
1answer
62 views

Rest-Client get authenticity_token to create new record

I try to create an new person out of an ruby program, for this task i use rest-client: require 'rest_client' require 'nokogiri' page = Nokogiri::HTML(RestClient.get("localhost:3000/people/new")) ...
1
vote
0answers
30 views

Require 3rd party payment APIs (like Venmo, Coinbase, or Dwolla) to send authentication info when making a POST request to my Rails URL

I have a url buy_product_url which allows users to buy a virtual product on my site. The user can pay for product using a variety of payment services, including those listed in the title. The user ...
1
vote
0answers
77 views

Devise token authentication - reset token per request

I'm building a mobile app which authenticates through devises token authentication and can't decide how often the token should be reset. I'm wondering if I reset and return a new token on every ...
0
votes
0answers
29 views

Rails 4 integrating with 3rd party authentication

I'm integrating my Rails 4 application with an internal 3rd party authentication service. I've never had to deviate from Rails's built in sessions before so I have a few questions. The service has a ...
1
vote
0answers
28 views

Devise, multiple user tables, one login path, multiple registration process

Ok hello everyone, I have been researching this subject for a while and have not found a solution that is specific to my needs. Requirements: Multiple AR user tables (Administrators, Designers, ...
0
votes
0answers
26 views

Domain based and sub-domain based authentication together in a single application

I have two user model in my Ruby on Rails project Admin and Customer. And there is one more model is called Shop. I'm using devise gem for authentication. I have multiple shop in my application each ...
1
vote
1answer
27 views

Sending confirmation mail on sign up using devise

I'm using Devise for authentication and want to send a confirmation mail upon sign up, clicking on the confirmation link will activate the account, otherwise user will not be able to sign in. How to ...
5
votes
3answers
263 views

Is devise's token_authenticatable secure?

I'm building a simple api with Rails API, and want to make sure I'm on the right track here. I'm using devise to handle logins, and decided to go with Devise's token_authenticatable option, which ...
0
votes
1answer
21 views

Rails token authentication from angular

I've developed an API with rails-api. To implement te API authentication I've followed the railscast: http://railscasts.com/episodes/352-securing-an-api. In the example it uses ...
0
votes
0answers
38 views

Rails.application.routes.recognize_path error with undefined method authenticate

In my application_controller.rb I have a line # Get the previous url string nicely. previousPath = Rails.application.routes.recognize_path(request.referrer) But I get this error on that line ...
0
votes
1answer
33 views

How to integrate recaptcha with devise?

I'm using Devise for authentication and want to add captcha in registration form, I've read about recaptcha,can someone tell how to integrate both?
0
votes
1answer
32 views

Rails devise method find_for_authentication not being called

I have a multitenant application, where every user can have different roles in different subdomains. There is table UserRight, which joins Tenant, User and Role. In order to find if the User have ...
0
votes
0answers
36 views

devise authentication with http basic authentication OR cookie

I am trying to type an authentication method for my rails application that work as a backend API. I have typed the following method to do so using devise and warden, and is working perfectly with ...

15 30 50 per page