Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A simple Open ID auth plugin for userless apps
Ruby JavaScript
branch: master
Failed to load latest commit information.
app fixed and working
config initial import
doc initial import
lib fixed and working
log initial import
public initial import
test/unit fixed and working
.gitignore initial import
README.markdown Updating the Readme
Rakefile initial import
init.rb fixed and working

README.markdown

Simple Admin

A database-less admin authentication based on OpenID

Requires the following gems

  • ruby-openid
  • rack-openid

Installation

Install the plugin

script/plugin install git://github.com/markpercival/simple_admin.git

Add the following before filter to any protected controllers

before_filter :ensure_admin

List the authorized OpenId's in 'config/simple_admins.yml'

- markpercival.us
- mark.squarepush.com

When you login you should see this

Login

The following helpers are available in your controller and views:

  • current_user - returns the current authenticated user
  • authorized? - tells you whether or not the current session is authenticated
Something went wrong with that request. Please try again.