similar to: session auth and AWS auth

Displaying 20 results from an estimated 9000 matches similar to: "session auth and AWS auth"

2007 Jul 30
6
Object.stubs doesn''t seem to work.
Hi I''m using Mocha 0.5.3 and I want to stub out a call to Time.now, just like the example in the post http://blog.floehopper.org/articles/2007/06/08/mocha-0-5-released However, trying it in irb gets me the following error: >> require ''mocha'' => true >> Time.stubs(:now).returns(Time.parse(''Thu Feb 01 00:00:00 UTC 2007'')) NoMethodError:
2007 Sep 11
2
acts_as_authenticated redirect on ajax requests
Hi there, I''d like to know if there is a solution to the scenario when using acts_as_authenticated and ajax: I have an action in my controller which is protected by login via acts_as_authenticated. Now, this action can be called both by human interaction, as well as ajax requests. (It is an add to cart link). It works great as long as I am in an authenticated session. Now, I want to
2006 Feb 20
6
LoginGenerator - multiple user types...
I have been looking at the LoginGenerator gem. Looks great and can be easily modified. However in my app I have two places where people can login, one is for in my case "employees" the other is for "users". They are seperate tables in my database and have many different fields. I have an admin area located at ./sysadmin/ where only "employees" can login, they
2007 Sep 03
13
Some basic questions
1. I have a text area in which I type on multiple lines..but when I display it, it prints whole text in one line..how can I solve that? Datatype is TEXT 2. I can see a list of all posts at ..post/ with index method but I want to see a particular post with ..post/[id] .. how can I do that? 3. I want my application to be completely secured and whatever page unlogged in user tries to open, it
2006 Apr 17
2
newbie before_filter question
I''ve successfully gotten acts_as_authenticated working. Currently the before_filter line for my admin screen is like this: class AdminController < ApplicationController include AuthenticatedSystem before_filter :login_required Only issue I have now is that anyone logged in can access that screen. I''d like to differentiate between a regular user and
2006 Aug 05
2
acl_system2 undefined method `access_control''
I''ve installed acts_as_authenticated and have that working like a charm and now would like to add the acl_system2 plugin so I can do some role based authorization stuff. I went ahead and installed the plugin like this: >ruby script\plugin source http://opensvn.csie.org/ezra/rails/plugins/dev/acl_system2 Then I installed the lib and test >ruby script\plugin install lib >ruby
2009 Mar 05
4
before_filter :action_name OR :action_name
Hi there I am wondering if we can use before_filter in the form of :action OR :action what i want to do is to implement one of the actions, if the first failed, then go to the second when i use before_filter :action1 before_filter :action2 each method will run them, my case is that i want to check if one of them is true and not both any idea?
2008 Jun 16
2
simple rails login system
Hey All, Just started to play around with rails a bit today by creating a login system, but I''ve run into a glitch. ###user_controller.rb### class UserController < ApplicationController def login @title = "Log In" if request.post? and params[:user] @user = User.new(params[:user]) @userfind =
2008 May 06
12
Why before_filter is not working?
I have been scratching my head on this one for most of the day. Hopefully someone can help explain why before_filter isn''t working for my codes. In my Application controller, I have this: before_filter :login_required, :except => [:newacct, :create_newacct, :passwd_reset ] def login_required unless session[:user_id] flash[:notice] = "Please log in"
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys, This is the final list of the new maintainers of each plugin. We need two more things to do: First please the owners of the repos add the rest of the maintainers. Second I will add a note on each rails/plugin mentioning this repos updates. So from now on, if someone else is interested in helping/contributing please send a message to the appropriate repo owner. verification
2006 Jan 29
3
SHLG and lib dir
Slowly figuring out how to get my SaltedHashLoginGenerator stuff working. The wiki page says to put "before_filter :login_required" in the user (my "user" is "member") controller or in ApplicationController. However, wherever I put it I get NoMethodError. The rest of the SHLG stuff seems to be working... or at least I could get to the signup page, register, and
2005 Aug 17
4
Stop an action ?
Hi. I am working on a generic authentification system for rails (more complete than the login generator). The way it works is you call a method inside your action, passing the domain as a parameter (domains are like a group of users with specific rights). For that purpose, I need to exit the action inside this method because it redirects to a login page if that person isn''t
2008 Jun 13
3
before_filter order of execution
Hi I''m trying to use before_filter to allow access to a site. Only logged in users can view any object in the controller, but only users with a access_level higher than 2 can view specific objects. My code is: ----------------------------------------------------------- IN USER_CONTROLLER before_filter :login_required before_filter :access_granted, :only => [:destroy, :new , :edit]
2009 Mar 23
2
Select updates database?
I am running on Rails 2.2.2 on Solaris (and also on my mac) against mysql. For some reason, when I use a select in the partial, the database does not get updated with the changed value. I am using checkbox for other fields which works perfectly. I can provide more information if needed, but I would like the field to work as a dropdown instead of a text field. My Model:
2006 Mar 08
8
Acts_as_authenticated plugin?
Hi, I''ve just downloaded the acts_as_authenticated plugin but I can''t find much in the way of documentation. First is there anywhere that someone could point me to to get a handle on this. Second.. Does the plugin still require the use of generators to use? Thanx in advance Dan -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Feb 27
3
Send parameter along with method in before_filter
Hello list, I have an app that has a very simple authorization scheme. A person can have many roles and roles can have many people. In my app, I''d like to do before_filter :login_required (since no role name is provided, it accepts any users with credentials) before_filter :login_required ("administrator") (only accepts those with role administrator) before_filter
2007 Aug 15
4
nuby: how spec redirect_to at ApplicationController
Good morning rspec people! Still rspec nuby: I must do something wrong obviously. How can I spec about redirect_to at ApplicationController describe ApplicationController do it "method login_required should redirect to home path without login" do pending "I tried to use controller.login_required.should be_redirected and got NoMethodError with nil object
2006 Apr 28
2
["acts_as_authenticated"] << "Role-Based Authorization Rails Recipe"
hi guys, has anyone here implemented role based authorization from rails recipes into acts_as_authenticated ? how''s it going? Case: there is ONE admin. And MANY users. Admin is the only one who can create, edit, delete user, etc.. users also need to login, but go to different pages. do you guys think it''s good to try rick''s acts_as_authenticated + chad''s
2008 Oct 13
3
console output
Hi All, Does anyone knows what doest this output means? [root@serverxen ~]# xm list Name                                      ID Mem(MiB) VCPUs State   Time(s) Domain-0                                   0     3202     8 r-----   5220.1 vm1                                  3     4095     2 -b----   3529.2 vm2                                  5     8191     4 -b----    399.0 [root@serverxen ~]# xm
2006 Mar 12
5
Authentication and authorization of static content
Hello, I''m a Java programmer looking to make my life easier. Thus, I''m considering using Rails for my next project. I''ve read chunks of the Agile book and it looks like authorizing users at the Controller level is dead easy to do. However, I have a need to password protect static content in my site. In the J2EE world, I would use a servlet filter to intercept