authrocket 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/authrocket/api/version.rb +1 -1
- data/lib/authrocket/realm.rb +2 -1
- data/lib/authrocket/session.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25c9714d9a8a39ba10d25bce51b378d643bb2a86
|
4
|
+
data.tar.gz: f6590ea8aed5079f41ddfe62d17c0095188efffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3ea43ae527d665af2ffd02ade85e8dac33d895a9d879fa425f13a6b6d0399819c06ea99368189601d7fd80155393d32ddf730788142be2d1b3ab6afe6a4783
|
7
|
+
data.tar.gz: 00183ddbe8d5b9d65da316118da31618dfa57892aa993ba7930470495d08a4d03d66a4b5219bc2807068667072ab67940c9bee667e90a3a6ac591ad0b818a1ba
|
data/CHANGELOG.md
CHANGED
data/lib/authrocket/realm.rb
CHANGED
@@ -10,9 +10,10 @@ module AuthRocket
|
|
10
10
|
has_many :users
|
11
11
|
|
12
12
|
attr :api_key_minutes, :api_key_policy, :api_key_prefix, :custom, :name
|
13
|
-
attr :
|
13
|
+
attr :jwt_fields, :require_unique_emails, :resource_links, :session_minutes
|
14
14
|
attr :session_type, :state, :username_validation_human
|
15
15
|
attr :jwt_secret # readonly
|
16
|
+
attr :jwt_data # deprecated
|
16
17
|
|
17
18
|
|
18
19
|
def reset!(params={})
|
data/lib/authrocket/session.rb
CHANGED
@@ -31,15 +31,18 @@ module AuthRocket
|
|
31
31
|
first_name: jwt['fn'],
|
32
32
|
last_name: jwt['ln'],
|
33
33
|
name: jwt['n'],
|
34
|
+
custom: jwt['cs'],
|
34
35
|
memberships: jwt['m'] && jwt['m'].map do |m|
|
35
36
|
Membership.new({
|
36
37
|
permissions: m['p'],
|
38
|
+
custom: m['cs'],
|
37
39
|
user_id: jwt['uid'],
|
38
40
|
org_id: m['oid'],
|
39
|
-
org: m['
|
41
|
+
org: m['o'] && Org.new({
|
40
42
|
id: m['oid'],
|
41
43
|
realm_id: jwt['aud'],
|
42
44
|
name: m['o'],
|
45
|
+
custom: m['ocs'],
|
43
46
|
}),
|
44
47
|
})
|
45
48
|
end,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authrocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AuthRocket Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ncore
|