GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of technoweenie/restful-authentication
Description: Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/b3b0p/restful-authentication.git
add more valid http authentication header names [GMFlash]

git-svn-id: 
http://svn.techno-weenie.net/projects/plugins/restful_authentication@3072 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Wed Dec 12 13:59:05 -0800 2007
commit  2ca6224e361affe097d294a9f98af4094ba77fc2
tree    0624cdf108060db0b395ecde191e4743dcab8894
parent  c927354f5819a8fb7710f94b9fe62536a5adb017
...
117
118
119
120
 
 
121
122
123
...
117
118
119
 
120
121
122
123
124
0
@@ -117,7 +117,8 @@ module AuthenticatedSystem
0
     end
0
 
0
   private
0
- @@http_auth_headers = %w(X-HTTP_AUTHORIZATION HTTP_AUTHORIZATION Authorization)
0
+ @@http_auth_headers = %w(Authorization HTTP_AUTHORIZATION X-HTTP_AUTHORIZATION X_HTTP_AUTHORIZATION REDIRECT_X_HTTP_AUTHORIZATION)
0
+
0
     # gets BASIC auth info
0
     def get_auth_data
0
       auth_key = @@http_auth_headers.detect { |h| request.env.has_key?(h) }

Comments

    No one has commented yet.