https://github.com/mdp/simple_admin
A simple Open ID auth plugin for userless apps
https://github.com/mdp/simple_admin
Last synced: over 1 year ago
JSON representation
A simple Open ID auth plugin for userless apps
- Host: GitHub
- URL: https://github.com/mdp/simple_admin
- Owner: mdp
- Created: 2009-11-03T06:01:19.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2009-11-10T17:16:45.000Z (over 16 years ago)
- Last Synced: 2025-01-23T12:14:54.491Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# 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

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