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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b422fcc6430a698ace4e8966391085fc7b70b991
4
- data.tar.gz: 99b41935ad041cce7496758764e6485bdf7f4023
3
+ metadata.gz: d1d5af7b92ee3662ab016d97a30cfb9bd99f4942
4
+ data.tar.gz: 29633e73943f1f9e0513b0abf0f5da1e32339f09
5
5
  SHA512:
6
- metadata.gz: ff9544164b89b30cfaa1230d98e18201f2df699c5a4df5802e4060f09ad428e69c478ed2f1598cb9d7385dae32283d4f63ac6709bf39a27c97f546a27b31dc26
7
- data.tar.gz: d8aa9ca7e626f54d81f7677d82a5e514883cf0180dd9a50552ddd9d24601367e5fcadfcad10c17e60cd66c8bba59050004e0420fd736165553a247774061cf09
6
+ metadata.gz: 0ad825950a2ec3eb978b1655141a5770f3821eb6c60535813059595cc42f4def065cbb48d05398335d6d238ecb1c1cc6942fa0f13211ee2e1ad5be5699d1665b
7
+ data.tar.gz: 29cecf9a5bac939862d5af435b2201f457f9364b3368f71ca934fb86418278ce580bdd25cb9d84a7b835d1ae843b3dcb60442ee582103f6dfaea03064e823352
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. Any of the following Ruby VMs:
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- - Optional. The HTML page title (as rendered within a browser tab). Default: "Authorization".
112
- - *label- - Optional. The page label (what would appear above the form). Default: "Authorization".
113
- - *secret- - Required. The secret passphrase used to encrypt/decrypt account credentials.
114
- - *accounts- - Required. The array of accounts with different or similar access to the application.
115
- - *name- - Required. The account name. The name that uniquely identifies each account.
116
- - *encrypted_login- - Required. The encrypted account login.
117
- - *encrypted_password- - Required. The encrypted account password.
118
- - *paths- - Required. The array of blacklisted paths for which only this account has access to.
119
- - *authorized_url- - Optional. The URL to redirect to upon successful authorization. Authorized redirection works
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- - Optional. The URL to redirect to upon successful deauthorization (i.e. logout). Deauthorized
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- - Optional. The URL to redirect to when enforcing authentication. Default: “/login”.
129
- - *logger- - Optional. The logger used to log path/account authorization messages. Default: Auther::NullLogger.
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
- # Contributions
211
+ # Code of Conduct
214
212
 
215
- Read [CONTRIBUTING](CONTRIBUTING.md) for details.
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
- # Credits
216
+ # Contributions
218
217
 
219
- Developed by [Brooke Kuhlmann](https://www.alchemists.io) at [Alchemists](https://www.alchemists.io).
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).
@@ -1,5 +1,5 @@
1
1
  require "slim-rails"
2
- require "auther/version"
2
+ require "auther/identity"
3
3
  require "auther/settings"
4
4
  require "auther/null_logger"
5
5
  require "auther/cipher"
@@ -0,0 +1,19 @@
1
+ module Auther
2
+ module Identity
3
+ def self.name
4
+ "auther"
5
+ end
6
+
7
+ def self.label
8
+ "Auther"
9
+ end
10
+
11
+ def self.version
12
+ "4.1.0"
13
+ end
14
+
15
+ def self.label_version
16
+ [label, version].join " "
17
+ end
18
+ end
19
+ end
@@ -7,9 +7,6 @@ module Auther
7
7
  def info(*)
8
8
  end
9
9
 
10
- def info(*)
11
- end
12
-
13
10
  def warn(*)
14
11
  end
15
12
 
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.0.0
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
- M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DAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
26
+ 9w0BAQUFAAOCAQEAT7KtBXWsq1KA7NOSMeFEDeSvhrgdLwCG/37pIu0rjvx9iAW4
27
+ gncxV0MccqIUtaF+lekjlXkIO+rXAVjvdha23KtpFTW90dYXp4NLPnPlSdyvYzJy
28
+ FIAaWGvujOT8xEu4umd45q5aepE8li4bR071i5Z7F0trKNVYYrxjQFmH5SSKYRT/
29
+ fXtICtAh1de3z3SOSK58IMPwjuoApYBxiqlmx0Uhla7mrzCE5+NmLPit3hLH6JFK
30
+ aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
31
+ xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
32
32
  -----END CERTIFICATE-----
33
- date: 2014-12-26 00:00:00.000000000 Z
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.5
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
@@ -1,3 +0,0 @@
1
- module Auther
2
- VERSION = "4.0.0"
3
- end