auther 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +22 -19
- data/lib/auther.rb +1 -1
- data/lib/auther/identity.rb +19 -0
- data/lib/auther/null_logger.rb +0 -3
- metadata +51 -51
- metadata.gz.sig +0 -0
- data/lib/auther/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1d5af7b92ee3662ab016d97a30cfb9bd99f4942
|
4
|
+
data.tar.gz: 29633e73943f1f9e0513b0abf0f5da1e32339f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad825950a2ec3eb978b1655141a5770f3821eb6c60535813059595cc42f4def065cbb48d05398335d6d238ecb1c1cc6942fa0f13211ee2e1ad5be5699d1665b
|
7
|
+
data.tar.gz: 29cecf9a5bac939862d5af435b2201f457f9364b3368f71ca934fb86418278ce580bdd25cb9d84a7b835d1ae843b3dcb60442ee582103f6dfaea03064e823352
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -29,9 +29,7 @@ making for a pleasent user experience.
|
|
29
29
|
|
30
30
|
# Requirements
|
31
31
|
|
32
|
-
0.
|
33
|
-
- [MRI 2.x.x](http://www.ruby-lang.org)
|
34
|
-
- [JRuby 1.x.x](http://jruby.org)
|
32
|
+
0. [MRI 2.x.x](http://www.ruby-lang.org).
|
35
33
|
0. [Ruby on Rails 4.x.x](http://rubyonrails.org).
|
36
34
|
|
37
35
|
# Setup
|
@@ -108,25 +106,25 @@ before deploying to production! To encrypt/decrypt account credentials, launch a
|
|
108
106
|
|
109
107
|
The initializer can be customized as follows:
|
110
108
|
|
111
|
-
- *title
|
112
|
-
- *label
|
113
|
-
- *secret
|
114
|
-
- *accounts
|
115
|
-
- *name
|
116
|
-
- *encrypted_login
|
117
|
-
- *encrypted_password
|
118
|
-
- *paths
|
119
|
-
- *authorized_url
|
109
|
+
- *title* - Optional. The HTML page title (as rendered within a browser tab). Default: "Authorization".
|
110
|
+
- *label* - Optional. The page label (what would appear above the form). Default: "Authorization".
|
111
|
+
- *secret* - Required. The secret passphrase used to encrypt/decrypt account credentials.
|
112
|
+
- *accounts* - Required. The array of accounts with different or similar access to the application.
|
113
|
+
- *name* - Required. The account name. The name that uniquely identifies each account.
|
114
|
+
- *encrypted_login* - Required. The encrypted account login.
|
115
|
+
- *encrypted_password* - Required. The encrypted account password.
|
116
|
+
- *paths* - Required. The array of blacklisted paths for which only this account has access to.
|
117
|
+
- *authorized_url* - Optional. The URL to redirect to upon successful authorization. Authorized redirection works
|
120
118
|
as follows (in the order defined):
|
121
119
|
0. The blacklisted path (if requested prior to authorization but now authorized).
|
122
120
|
0. The authorized URL (if defined and the blacklisted path wasn't requested).
|
123
121
|
0. The root path (if none of the above).
|
124
|
-
- *deauthorized_url
|
122
|
+
- *deauthorized_url* - Optional. The URL to redirect to upon successful deauthorization (i.e. logout). Deauthorized
|
125
123
|
redirections works as follows (in the order defined):
|
126
124
|
0. The deauthorized URL (if defined).
|
127
125
|
0. The auth URL.
|
128
|
-
- *auth_url
|
129
|
-
- *logger
|
126
|
+
- *auth_url* - Optional. The URL to redirect to when enforcing authentication. Default: “/login”.
|
127
|
+
- *logger* - Optional. The logger used to log path/account authorization messages. Default: Auther::NullLogger.
|
130
128
|
|
131
129
|
## Routes
|
132
130
|
|
@@ -210,13 +208,14 @@ To test, run:
|
|
210
208
|
- [Devise](https://github.com/plataformatec/devise) - For complex situations where you need persisted user objects,
|
211
209
|
email support, social media support, and much more.
|
212
210
|
|
213
|
-
#
|
211
|
+
# Code of Conduct
|
214
212
|
|
215
|
-
|
213
|
+
Please note that this project is released with a [CODE OF CONDUCT](CODE_OF_CONDUCT.md). By participating in this project
|
214
|
+
you agree to abide by its terms.
|
216
215
|
|
217
|
-
#
|
216
|
+
# Contributions
|
218
217
|
|
219
|
-
|
218
|
+
Read [CONTRIBUTING](CONTRIBUTING.md) for details.
|
220
219
|
|
221
220
|
# License
|
222
221
|
|
@@ -227,3 +226,7 @@ Read the [LICENSE](LICENSE.md) for details.
|
|
227
226
|
|
228
227
|
Read the [CHANGELOG](CHANGELOG.md) for details.
|
229
228
|
Built with [Gemsmith](https://github.com/bkuhlmann/gemsmith).
|
229
|
+
|
230
|
+
# Credits
|
231
|
+
|
232
|
+
Developed by [Brooke Kuhlmann](https://www.alchemists.io) at [Alchemists](https://www.alchemists.io).
|
data/lib/auther.rb
CHANGED
data/lib/auther/null_logger.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auther
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -10,56 +10,28 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMTUwNzA1MTQ1MzExWhcNMTYwNzA0MTQ1MzExWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2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|
31
|
+
xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2015-07-05 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: pry-byebug
|
37
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
42
|
-
type: :development
|
43
|
-
prerelease: false
|
44
|
-
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: '0'
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: pry-stack_explorer
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
type: :development
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
35
|
- !ruby/object:Gem::Dependency
|
64
36
|
name: rails
|
65
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -172,6 +144,34 @@ dependencies:
|
|
172
144
|
- - ">="
|
173
145
|
- !ruby/object:Gem::Version
|
174
146
|
version: '0'
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: pry-byebug
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: pry-stack_explorer
|
163
|
+
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
type: :development
|
169
|
+
prerelease: false
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
176
|
name: pry-remote
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
@@ -328,10 +328,10 @@ files:
|
|
328
328
|
- lib/auther/cipher.rb
|
329
329
|
- lib/auther/engine.rb
|
330
330
|
- lib/auther/gatekeeper.rb
|
331
|
+
- lib/auther/identity.rb
|
331
332
|
- lib/auther/keymaster.rb
|
332
333
|
- lib/auther/null_logger.rb
|
333
334
|
- lib/auther/settings.rb
|
334
|
-
- lib/auther/version.rb
|
335
335
|
- lib/generators/auther/install/install_generator.rb
|
336
336
|
- lib/generators/auther/templates/config/initializers/auther.rb
|
337
337
|
homepage: https://github.com/bkuhlmann/auther
|
@@ -354,7 +354,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
354
354
|
version: '0'
|
355
355
|
requirements: []
|
356
356
|
rubyforge_project:
|
357
|
-
rubygems_version: 2.4.
|
357
|
+
rubygems_version: 2.4.8
|
358
358
|
signing_key:
|
359
359
|
specification_version: 4
|
360
360
|
summary: Enhances Rails with multi-account, form-based, database-less, application-wide
|
metadata.gz.sig
CHANGED
Binary file
|
data/lib/auther/version.rb
DELETED