Skip to content

Instantly share code, notes, and snippets.

@samsm
Created November 29, 2009 20:07
Show Gist options
  • Save samsm/245045 to your computer and use it in GitHub Desktop.
Save samsm/245045 to your computer and use it in GitHub Desktop.
use Rack::If, {:path => /\A\/admin\/mega-admin.*/}, :any, :skip do
use EasyRackOpenID, :allowed_identifiers => ['http://example.com/mega-admin']
end
# If a person goes to /admin/mega-admin and passes that check, they skip this one:
use Rack::If, {:path => /\A\/admin.*/}, :any do
use EasyRackOpenID, :allowed_identifiers => ['http://example.com/admin']
end
run Site.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment