oauth-bwergemn 1.0.3 → 1.0.4
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28680e1cabddf3a646ce5e9b58ad26b9d6e6e5d5dfbc3b7ed18a625a2b0b13a4
|
4
|
+
data.tar.gz: f198b7a8da14f14a5f66d3361c3ff31e3bddf6974b1d73bdcec3170022fbe524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9321d12b5598bb230196e8fd73162e1e0a51208108c3610e08b5cedac8ed4719fc0210311e3502226dd29830c06bef9a945a3bb924f49bab58a8c8b161d7c5ea
|
7
|
+
data.tar.gz: c74d19c90247e8cea7871199ec6f8d7518970e66df2497344f672a1bd267ce4a68d260b89db18b927e440b2df795c95d9560b866dcd447cd9a95e369d4adc313
|
@@ -1,5 +1,5 @@
|
|
1
1
|
OauthBwergemn.setup do |config|
|
2
2
|
# your authentication server
|
3
3
|
config.auth_strategy = "hub"
|
4
|
-
config.resources
|
4
|
+
config.resources = { user: "Models::User" } # { admin: "Models::Admin", user: "Models::User" , moderator: "Models::Moderator" }
|
5
5
|
end
|
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
module OauthBwergemn
|
4
4
|
module AuthMethods
|
5
|
-
attr_accessor :
|
6
|
-
attr_accessor :resource__token, :resource_owner, :resource_credentials
|
5
|
+
attr_accessor :resource_token, :resource_owner, :resource_credentials
|
7
6
|
|
7
|
+
# rubocop:disable Lint/DuplicateMethods
|
8
8
|
def protected_endpoint=(protected)
|
9
9
|
@protected_endpoint = protected
|
10
10
|
end
|
@@ -13,7 +13,6 @@ module OauthBwergemn
|
|
13
13
|
@protected_endpoint || false
|
14
14
|
end
|
15
15
|
|
16
|
-
# rubocop:disable Lint/DuplicateMethods
|
17
16
|
def resource_token
|
18
17
|
@_resource_token
|
19
18
|
end
|