Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple Open ID auth plugin for userless apps

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log
Octocat-spinner-32 public
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
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.