public
Description: A attempt to make SSL client certificate authentication with rails painless
Homepage: http://blog.startika.com
Clone URL: git://github.com/labria/rails-ssl-authentication.git
test ssl in test_controller
labria (author)
Sat Feb 23 11:39:39 -0800 2008
commit  0ee1c9179425559f0bc84d0354fe654c4af96627
tree    c6766d4bbf8c123e198104ec346a50d4069a01e4
parent  c2d583937680f8d58b26b629af501415ae5b2efd
...
4
5
6
 
7
8
9
10
...
4
5
6
7
8
9
10
11
0
@@ -4,6 +4,7 @@ tmp/**/*
0
 public/cache/**/*
0
 doc/api
0
 doc/app
0
+config/database.yml
0
 db/development.sqlite3
0
 db/schema.rb
0
 config/deploy.rb
0
\ No newline at end of file
...
1
 
 
 
 
 
 
 
2
...
1
2
3
4
5
6
7
8
9
0
@@ -1,2 +1,9 @@
0
 class TestController < ApplicationController
0
+ def index
0
+ if request.ssl?
0
+ render :text => "ssl request"
0
+ else
0
+ render :text => "non-ssl request"
0
+ end
0
+ end
0
 end

Comments

    No one has commented yet.