New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bledig-tuersteher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bledig-tuersteher

  • 0.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Tuersteher Security-Layer for Rails-Application acts like a firewall. It's check your URL's or Modells to have the rights for this.

== Install

gem install bledig-tuersteher --source http://gems.github.org

== Usage

Create in your Rails-Application the rules-file "config/access_rules.rb" (or copy the sample from samples-directory and modify)

Here is as small sample for "config/access_rules.rb"

Path-Acces-Rules

grant_path '/', :get, :all grant_path '/admin-area/', :all, :ADMIN

Model-Acces-Rules

grant_model Product, :view, :all grant_model Product, :update, :EDITOR do |product, current_user| product.owner_id == current_user.id end

Then extend your ApplicationController with:

include Tuersteher::ControllerExtensions before_filter :check_access # methode is from Tuersteher::ControllerExtensions

Check if your authendicate-system has implemented the methods:

  • current_user
  • access_denied

If not, just implemen it (see samples/application_controller.rb)

== License

LGPL V3 (see license.txt)

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc