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

markpercival-quickadmin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markpercival-quickadmin

  • 1.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

quickadmin

A merb slice that authenticates yaml defined OpenID users.


About

Sometime you have an app that doesn't need full authentication, but you'd like to be able to limit some pages to admins only. This is the story of that app...

Installation and use

Install the gem from the cloned repo

git clone git://github.com/markpercival/quickadmin.git
cd quickadmin
sudo rake install

Add the following to dependencies.rb

dependency 'quickadmin'

and then add this to router.rb

slice(:quickadmin, :name_prefix => nil, :path_prefix => "")

On any page you want to protect just create a before filter:

before :ensure_quickadmin, :only => [:index, :edit]

Add the authorized OpenID's to 'config/quickadmins.yaml'

- mpercival.com
- gweezelbur.com
- john.schult.us

It will auto-magically create the necessary 'config/quickadmins.yaml' on the first load if you don't already have one.

Author and license info

  • Official Repo: http://github.com/markpercival/quickadmin
  • © 2008, Mark Percival - mark@mpercival.com
  • Released under the MIT License

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