Skip to content

Sample framework for basic authentication in Sinatra with DataMapper

Notifications You must be signed in to change notification settings

codebiff/sinatra-authentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinatra Authentication Framework

Basics

Clone it. Add to it. Make it better. Add some routes. Use the helpers.

Helpers

	current_user				#=> Returns current logged in user
	login_required				#=> Checks if a user is logged in
	admin_required				#=> Checks if user is an admin
	is_owner? :id				#=> Checks if logged in user has same id as requested

About

Sample framework for basic authentication in Sinatra with DataMapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages