0
votes
0answers
11 views

Why does rails authenticate_or_request_with_http_basic keep displaying 401 Unauthorized error?

The following method keeps on loggin '401 Unauthorized' in my logs even when the credentials are correct, and the filter passes and continues into the application (it returns with a status code =200, ...
2
votes
0answers
35 views

Devise with existing database: 401 Unauthorized using valid password

I am trying to use devise for user authentication of my website. It uses an existing User table. The table has username and password, however when I try to log in, I get the following error: ...
0
votes
0answers
9 views

How to generate a Tenant in Milia?

I'm trying to setup my rails application to be multitenant, so that users will have separate data. For managing users I use Devise, so it seemed logic to use milia for my scope. Though I found the ...
1
vote
1answer
79 views

How do you implement lazy token authentication for non-registered users in Rails?

UPDATE I have further clarified my question, listed at the end of this post. Problem Summary: I am trying to implement lazy (aka soft sign-up) registration in Devise via an emailed URL which ...
0
votes
1answer
41 views

Pusher in Rails: “Unknown auth_key” - server side not triggering events

I am trying to insert Pusher into my already quite late stage Rails app. The client side works fine - using the Pusher Event Creator triggers the desired javascript. The server side is not working ...
0
votes
0answers
22 views

How to add a before filter for Facebook Omniauth Railscast?

I followed the Omniauth Facebook Railscast and everything works fine. Now I want to add a before filter, but can't manage to find an easy way to make it work? I tried, but get an error. I tried ...
0
votes
1answer
20 views

Processing create immediately after authenticate_user

I have a CommentsController. I allow a Guest (non-authenticated user) to see the form for posting a new comment and allow them to submit it. Now, I wanted to authenticate my user after they submit ...
0
votes
1answer
24 views

How to develop an authentication/authorization plugin that I can use for multiple projects

I am a newbie for RoR but I liked it so far. For the current project I already developed an authenticaion page where the user will be authenticated before and after login. I know that I will be doing ...
1
vote
2answers
35 views

A before_filter for Omniauth Facebook?

For devise there is a very easy to use Before_filter to use in the controllers. For some reason I can't get this to work for the Omniauth_facebook Gem. I followed the Railscast on Facebook Omniauth ...
1
vote
1answer
34 views

Rails - paperclip - NoMethodError

I'm trying to make a create product page in rails. This includes adding multiple images and text fields. I have one model for products and one for photos. I'm using the paperclip gem for photo upload. ...
1
vote
1answer
29 views

rails authenticate nomethoderror nil for nilClass

So, I've been having issues with the 'authenticate' method coming back in RSpec as a NoMethodError. Below is my code. I'm borrowing heavily from Michael Hartl's Rails Tutorial as I am just learning ...
-1
votes
1answer
31 views

Invitation based authentication in Rails [closed]

I'm new to ROR and trying to build an invite based auth. Currently, I'm using Omniauth-facebook to have login using fb on my site. However, I want the users to have a custom url like - ...
1
vote
1answer
56 views

RSpec - The passwords in my test are not matching up

I wrote up a test that should describe the case where @user and found_user should be the same via password match. This also describes when they're different. I'm not using devise or anything, but ...
0
votes
1answer
31 views

Trigger basic HTTP auth from within middleware

I have created a custom middleware for rails which will intercept all requests and make sure it's coming from an authorized IP, otherwise it should prompt for a basic http auth user/name password. ...
0
votes
1answer
100 views

Fix Rails oauth facebook x-frame-options sameorigin error

I can't for the life of me get my Facebook canvas app to display. Chrome console displays this error and nothing shows up inside the iframe - it's blank: Refused to display 'http://mysite.dev/' in ...
0
votes
3answers
42 views

Rails - how to find out user's role in the system?

I have following models: class Role < ActiveRecord::Base has_many :assignments has_many :users, :through => :assignments end class Assignment < ActiveRecord::Base belongs_to :user ...
1
vote
0answers
23 views

Authlogic - how to make a registration and don't log in the new account?

I have an administration where I can create new accounts. For creating new accounts I am using the gem Authlogic. As admin, I would like to create a new account for a new user without log in (the ...
0
votes
0answers
60 views

Grape API and OAuth

I'm working on creating API for my rails application using Grape framework. I'm trying different authentication possibilities. Can someone give a simple example of using OAuth for authentication?
0
votes
1answer
51 views

Will I regret using Devise for this? RoR, multiple user/admin layers, multi-tenency, fast user switching

My Question Should I use Devise for this app, use some other auth solution, or roll my own? What I'm building I'm building an app that will be used as a kiosk for store employees to log into and ...
0
votes
0answers
26 views

use old version of devise 1.1.7 on ruby 1.9.3 and rails 3.2.11 or connect it with new version via sso

I need to integrate old app which use devise 1.1.7 and rails 3.0.4 with modern app based on rails 3.2.11 via SSO. Anybody could advice how to do that? Currently when I try to open the page on the new ...
0
votes
1answer
26 views

Best way to implement ban system for rails app

I'm using Devise with cancan for authentication in my rails app and I'd like to be able to block certain accounts and prevent users from registering with a blocked email and phone. I'm just not sure ...
0
votes
1answer
46 views

Failing Tests for Authentication - Rails allow signin success method - Hartl Chapter 8.2

Help, I feel down a User Authentication hole and can't get out!! I've been working through M. Hartl's tutorial on Rails -- I'm pretty green. My authentication tests won't pass. I have 24 errors ...
0
votes
0answers
50 views

How to do json authentication with devise in ror

I want to do JSON authentication with devise in ROR. I managed to config devise to response with Json. But I do not how to proceed next. In my understanding, when log in , I need to get a session ...
1
vote
1answer
38 views

Email based interaction with rails app

I need some gem that will allow users to interact with rails app through email, without need to register. For example: I publish something for sale, accompanied with email, and all of controls ...
2
votes
3answers
139 views

Rails: RSpec - undefined method `cookie_jar' for nil:NilClass

Rails newbie. Trying to follow Michael Hartl's tutorial. Stuck trying to add a helper method to simulate log in an RSpec test: describe "when the a user has logged in and attempts to visit the page" ...
1
vote
0answers
54 views

Sharing session across rails apps on different subdomains

I am trying to implement a single-sign-on solution for multiple rails (v3.2) apps hosted at different subdomains of example.com One app serves as an identity provider, uses devise for auth, and sits ...
1
vote
1answer
72 views

Ruby on Rails - Email confirmation link gives nomethoderror

I want an email to be sent when a user registers. This email should contain a link that changes the account to a full user. I want this email link to be a token for security. email_token is a ...
1
vote
1answer
75 views

Rails - Email sign-up confirmation - NoMethodError

I want an email to be sent when a user registers. This email should contain a link that changes the account to a full user. I want this email link to be a token for security. email_token is a ...
0
votes
2answers
37 views

Rails - How to give users edit rights over specific posts?

For my application, I have users who make project postings. Each post is only editable by only the original poster. I want to build a function that allows the original user to give other users of ...
1
vote
2answers
39 views

Rails - Email Confirmation - RecordNotFound Error

I want an email to be sent when a user registers. This email should contain a link that changes the account to a full user. I want this email link to be a token for security. email_token is a ...

1 2 3 4 5 28
15 30 50 per page