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: 99e32151695d92c0c2ef047d74d9d719a751781f196049cb7904b0ed837f0bcf
4
- data.tar.gz: df02811335d7aadd9e0d04bf74c0c171dea51200cb4c9d87dcf7a97a853ba4d0
3
+ metadata.gz: 28680e1cabddf3a646ce5e9b58ad26b9d6e6e5d5dfbc3b7ed18a625a2b0b13a4
4
+ data.tar.gz: f198b7a8da14f14a5f66d3361c3ff31e3bddf6974b1d73bdcec3170022fbe524
5
5
  SHA512:
6
- metadata.gz: 681152cb13886f430109c5b4824a5e77807569a65018c4a1e20f3baaa049a1f089030079b305aa94d89dc526008e748ffadc5838f33589539a99895a81a5cb61
7
- data.tar.gz: 934fa511ac7dcdbaf5cf1f99b7bc0ab909a4b951537c98201011bc9f695865d1449df45cf8bcc30f2fdc6adfbce9986f7a086d3936808a6e4fe0990953cff658
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 = { admin: "Models::Admin", user: "Models::User" }
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 :the_access_token, :current_user, :credentials
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
@@ -36,6 +36,9 @@ module OauthBwergemn
36
36
  ############
37
37
  # Authorization control.
38
38
  ############
39
+ def endpoint_protected?
40
+ auth_strategy.endpoint_protected?
41
+ end
39
42
 
40
43
  def args
41
44
  results = {}
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OauthBwergemn
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  public_constant :VERSION
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oauth-bwergemn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alam Ybs