Plugins - Secure Actions

StarAdd to favorites

This plugin lets you declare which actions you want to be accessed via https.

If you declare an action to be ssl_required, then if it is accessed without ssl, it is redirected to https://

Also, any links to these actions will automatically be https:// links.

Ian Warshak

http://ianwarshak.com

http://github.com/iwarshak/secure_actions

Rails' (MIT)

  • Currently 3.7/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Controllers

Tags

ssl

Comments

Add a comment
Scott 11 Apr 2007

I don't if this the right place to report this but I found a small bug in the plugin's code.

The bug arises when a http request is redirected to https with the 'ensureproperprotocol' method. Any params sent to with the http request are lost in the redirect to https.

This is an easy fix:

def ensureproperprotocol if !request.ssl? && USESSL && sslrequired? params[:protocol] = 'https://' redirect_to params return false end return true end

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?