humble_auth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +38 -0
- data/Rakefile +1 -1
- data/lib/humble_auth/version.rb +1 -1
- metadata +18 -27
- data/README.rdoc +0 -3
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# HumbleAuth
|
2
|
+
|
3
|
+
HumbleAuth is a simple one-person authentication system based on http basic authentication.
|
4
|
+
|
5
|
+
[![Build Status](https://secure.travis-ci.org/fxposter/humble_auth.png)](http://travis-ci.org/fxposter/humble_auth)
|
6
|
+
|
7
|
+
## Installation and usage
|
8
|
+
|
9
|
+
Add gem to your Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'humble_auth'
|
13
|
+
```
|
14
|
+
|
15
|
+
|
16
|
+
Generate config file:
|
17
|
+
|
18
|
+
```bash
|
19
|
+
rails generate humble_auth:install
|
20
|
+
```
|
21
|
+
|
22
|
+
|
23
|
+
This will create config/auth.yml, which contains your user credentials (yeah, this system is not database-baked, it's YAML-baked instead).
|
24
|
+
You can provide different credentials for different environments or turn off authentication for some environments at all (for example, for development env).
|
25
|
+
|
26
|
+
After that you can
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
before_filter :require_authentication
|
30
|
+
```
|
31
|
+
|
32
|
+
|
33
|
+
in any of your controllers, and then this controller (or specific actions) will be protected.
|
34
|
+
|
35
|
+
You can check whether user is authenticated using ApplicationController#authenticated? method (it's also available in helpers).
|
36
|
+
Also, you can "logout" using ApplicationController#reset_authentication.
|
37
|
+
|
38
|
+
This project rocks and uses MIT-LICENSE.
|
data/Rakefile
CHANGED
data/lib/humble_auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humble_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,50 +9,41 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-03-01 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70356287251340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.0
|
22
|
-
- - <
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: 3.2.0
|
21
|
+
version: '3.0'
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
|
-
version_requirements: *
|
24
|
+
version_requirements: *70356287251340
|
28
25
|
- !ruby/object:Gem::Dependency
|
29
26
|
name: activesupport
|
30
|
-
requirement: &
|
27
|
+
requirement: &70356287250580 !ruby/object:Gem::Requirement
|
31
28
|
none: false
|
32
29
|
requirements:
|
33
|
-
- -
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 3.0.0
|
36
|
-
- - <
|
30
|
+
- - ~>
|
37
31
|
- !ruby/object:Gem::Version
|
38
|
-
version: 3.
|
32
|
+
version: '3.0'
|
39
33
|
type: :runtime
|
40
34
|
prerelease: false
|
41
|
-
version_requirements: *
|
35
|
+
version_requirements: *70356287250580
|
42
36
|
- !ruby/object:Gem::Dependency
|
43
37
|
name: railties
|
44
|
-
requirement: &
|
38
|
+
requirement: &70356287249900 !ruby/object:Gem::Requirement
|
45
39
|
none: false
|
46
40
|
requirements:
|
47
|
-
- -
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 3.0.0
|
50
|
-
- - <
|
41
|
+
- - ~>
|
51
42
|
- !ruby/object:Gem::Version
|
52
|
-
version: 3.
|
43
|
+
version: '3.0'
|
53
44
|
type: :runtime
|
54
45
|
prerelease: false
|
55
|
-
version_requirements: *
|
46
|
+
version_requirements: *70356287249900
|
56
47
|
description: HTTP Basic authentication solution for Rails 3
|
57
48
|
email:
|
58
49
|
- fxposter@g,ail.com
|
@@ -69,7 +60,7 @@ files:
|
|
69
60
|
- lib/humble_auth.rb
|
70
61
|
- MIT-LICENSE
|
71
62
|
- Rakefile
|
72
|
-
- README.
|
63
|
+
- README.md
|
73
64
|
- test/generators_test.rb
|
74
65
|
- test/helper_test.rb
|
75
66
|
- test/humble_auth_test.rb
|
@@ -88,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
79
|
version: '0'
|
89
80
|
segments:
|
90
81
|
- 0
|
91
|
-
hash:
|
82
|
+
hash: 2808104105763644241
|
92
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
84
|
none: false
|
94
85
|
requirements:
|
@@ -97,10 +88,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
88
|
version: '0'
|
98
89
|
segments:
|
99
90
|
- 0
|
100
|
-
hash:
|
91
|
+
hash: 2808104105763644241
|
101
92
|
requirements: []
|
102
93
|
rubyforge_project:
|
103
|
-
rubygems_version: 1.8.
|
94
|
+
rubygems_version: 1.8.16
|
104
95
|
signing_key:
|
105
96
|
specification_version: 3
|
106
97
|
summary: The simplest authentication solution for Rails 3
|
data/README.rdoc
DELETED