Questions tagged [warden]

Warden is a Rack-based middleware, designed to provide a mechanism for authentication in Ruby web applications. It is a common mechanism that fits into the Rack Machinery to offer powerful options for authentication. Warden is designed to be lazy. That is, if you don’t use it, it doesn’t do anything, but when you do use it, it will spring into action and provide an underlying mechanism to allow authentication in any Rack-based application.

Warden is a Rack-based middleware, designed to provide a mechanism for authentication in Ruby web applications. It is a common mechanism that fits into the Rack Machinery to offer powerful options for authentication.

Warden is designed to be lazy. That is, if you don’t use it, it doesn’t do anything, but when you do use it, it will spring into action and provide an underlying mechanism to allow authentication in any Rack-based application.

248 questions
0
votes
1 answer

Devise JSON API returning 406 instead of 401 because of redirect

I'm trying to get devise to return a 401 and error message when trying to request an endpoint without proper authentication. Currently this is what is happening: Started GET "/api/v1/home/index.json" for 127.0.0.1 at 2013-02-27 02:40:22…
0
votes
1 answer

Replace default authentication strategy in Padrino-Warden

Im struggling to replace the default :password strategy for the Padrino-Warden gem. The way I figure it I need to get a hold of the manager instance for warden so I can set the default strategies but I'm not sure how to do that in the app.rb…
Erik Johansson
  • 1,188
  • 1
  • 8
  • 22
0
votes
1 answer

How can authentication be shared among multiple (sub-)domains?

An unauthenticated user arrives at www.example.com. The user logs in on: https://api.example.com/login After successful login, the user is redirected to: https://dashboard.example.com When going back to: www.example.com - the session is kept, and…
poseid
  • 6,986
  • 10
  • 48
  • 78
0
votes
1 answer

Rails with Devise - Use current_user after 'remote => true' submit

I have a three part user signup that work with two separate models: User, and Customer Info. There's a user signup that I submit remotely, and it goes to the next part of the form. I want to be able to use the current_user variable when I submit…
jake
  • 1,635
  • 2
  • 20
  • 30
0
votes
2 answers

How to detect that user is going to be authenticated? (before authenticate)

I need to trigger callback before Devise redirects user to login page, probably because authenticate_user! method detected he's not logged in. Something like: before_filter :authenticate_user!, :only => :edit def not_authenticated_callback # do…
sheerun
  • 1,728
  • 14
  • 27
0
votes
1 answer

can not use cancan

I am following rails casts episode 192 for cancan (http://railscasts.com/episodes/192-authorization-with-cancan?autoplay=true). I have ruby 1.9.3 and rails 3.2.3 My gem file has this content group :test, :development do gem 'rspec-rails', '~>…
-1
votes
1 answer

Changing content of application in warden container

I've cf application which I pushed and working as expected,now I want to change some file content in RT to avoid re-push.the application in deployed to warden container so it "persist" (for this instance ) in the filesystem of the container,How can…
user4445419
-2
votes
1 answer

Mailhog not receiving mail with Warden/Magento2 setup

I followed the steps at https://docs.warden.dev/environments/magento2.html to setup a magento2 environment and followed the instructions exactly. However, I'm not seeing any emails come through to MailHog when I do things like create a customer…
Scruffy Paws
  • 1,219
  • 1
  • 21
  • 27
1 2 3
16
17