Skip to content

rdallasgray/digestive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digestive

A super-simple microframework to implement Digest Authentication for Rails apps.

NB USE AT YOUR OWN RISK!

include Digestive::Auth
# simple simon
before_filter :authenticate

# authenticate with an authorization strategy
def authenticate_as_admin
  authenticate { |user| user.is_admin? }
end

# on successful authentication, user stored in instance var
# of including class
@current_user.is_a?(User)

Installation

$ gem install digestive

About

Digest auth for Rails apps

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages