Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/claudiob/dumb_auth
The dumbest authentication gem ever!
https://github.com/claudiob/dumb_auth
Last synced: 17 days ago
JSON representation
The dumbest authentication gem ever!
- Host: GitHub
- URL: https://github.com/claudiob/dumb_auth
- Owner: claudiob
- License: mit
- Created: 2013-05-11T01:12:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-14T05:42:00.000Z (over 11 years ago)
- Last Synced: 2024-12-05T13:26:19.818Z (about 1 month ago)
- Language: Ruby
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
What is DumbAuth
==================The dumbest authentication gem ever! It works like this ([as specified in the tests](test/controllers/sessions_controller_test.rb)):
* POST to the `login_path` and `logged_in?` will return `true` for the rest of the session
* DELETE to the `logout_path` and `logged_in?` will return `false` for the rest of the sessionHow to install
==============Just add the `dumb_auth` gem to your `Gemfile`, bundle, and you will get access to the `login` (POST) route, `logout` (DELETE) route and `logged_in?` method, accessible both in your controllers and helpers.
Note that DumbAuth requires `ApplicationController` to exist in the app where it is installed.
Why is it useful
================Deciding which (smart) authentication gem to use in a Rails project takes time.
Often, you do not want/need to spend this time at the *beginning* of the project: you simply want to show different pages when the user is logged in or out.
If you start with `DumbAuth`, you get exactly this, without wasting precious time at the beginning of a project.How to contribute
=================Fork the project, edit the code, make sure the tests pass by running `rake`, commit and submit a Github pull request.
Thanks! :)License
=======
This project rocks and uses MIT-LICENSE.