warden Questions

1

I am looking to build a Scalatra based API. One of the requirements is OAuth authentication. I noticed the guide for OAuth isn't yet put up on the official Scalatra site. Is the best way to current...
Wellbred asked 18/6, 2013 at 18:34

1

Solved

The "data" in a Rails session looks like this: {"warden.user.user.key" => [[1], "long-random-string"]} 1 is the user id. What is the long random string? Is this something handled/used by Rai...
Insolate asked 11/5, 2014 at 20:44

2

I am running devise 1.3.4 with rails 3.0.7. I have two ways users may sign in: using the web app, and using a mobile web app (via a JSON API call). The first way is handled perfectly by the default...
Christoperchristoph asked 26/5, 2011 at 19:12

1

Solved

I am having an issue were I keep getting this timeout for Faraday. I don't know what the issue is. I could really use some help here. This failing on a redirect. I am not sure what is causing the i...
Skippet asked 21/6, 2013 at 3:32

2

Solved

I was able to use Devise's sign_in method to log in a user in my controller specs. But now that I'm removing Devise from my application, I'm not quite sure how to get similar functionality working ...
Noakes asked 16/11, 2012 at 16:51

1

Solved

I'm having trouble discerning why my app is returning a 401 Unauthorized. Other actions in my Institutions controller are working just fine while not signed in. However, this and another page are r...
Lollapalooza asked 25/4, 2013 at 18:46

3

I have two Devise models, User and Business; I would like both to be able to sign in using a single sign in form. I am using backbone js and I have a customized view so the view is not a concern. A...
Trachyte asked 21/9, 2012 at 14:36

4

Solved

How can i prevent the session store from creating a session on JSON/XML calls ? My problem is that i save sessions in a database and it gets flooded on multiple api calls. I'm using Rails 3.2.2 a...
Joelynn asked 23/5, 2012 at 10:3

3

Solved

I have a quite standard Devise login procedure with: View: resource_name, :url => session_path(resource_name)) do |f| %> <%= f.input :password, input_html: {class: "span6"} %> <% if...
Trader asked 10/1, 2013 at 9:10

4

Solved

Active Admin is a gem used for having an admin dashboard in your application. It uses Devise for logging in users and creates a separate admin_user model for the admins. My application already uses...
Reticular asked 3/10, 2011 at 20:25

2

Solved

I want to create a custom auth strategy for accessing the API. I followed the example code at Devise ignoring custom strategy. The problem is that the valid? method in my Api strategy is never run...
Goon asked 17/8, 2012 at 16:55

2

Solved

I'm having an issue with testing my controllers and using Warden. All examples point at stubbing request.env['warden']. This causes issues in my controllers when I call env['warden'], which then r...
Champlin asked 13/2, 2012 at 13:15

1

Solved

I have a Rails 3.1.3 app which uses devise for users authentication and soft-deletes them with acts_as_paranoid. I want the accounts to be undeleted upon password recreation, user sign up and user ...
Brandenburg asked 16/1, 2012 at 21:11

1

Solved

I'm relatively new to rails. I have Devise set up, and want to run some callback code after users sign in. Looking at the Warden wiki page, I can use the "after_set_user" callback to perform this ...
Occident asked 11/9, 2011 at 2:0

1

Solved

I am trying to split my current Ruby on Rails 3 web-application and it's web-services (API). My web-application is running on Heroku and implements API as a namespaced route within my application. ...
Macmacabre asked 18/4, 2011 at 9:32

1

I need to grab the session id for a user and use it preferably in a model. Here's the gist: 1) I have a list of proposals. 2) Unregistered users can create proposals and their session id is save...
Sunfast asked 10/6, 2011 at 14:51

2

Solved

For my lastest project I'm using https://github.com/hassox/rails_warden. It suits my needs very well except that I can't find a good way to implement remember_me. I know that it's notoriously diffi...
Pallet asked 16/12, 2010 at 14:49

© 2022 - 2024 — McMap. All rights reserved.