omniauth-campus 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4c84cc14ebb7fb660df1301b3f96fbc9a37cee3
4
- data.tar.gz: a34294796a1ab70357c43525653bff7c7a854e55
3
+ metadata.gz: a3aa81608d9b3c20dc330d44527514599be2b277
4
+ data.tar.gz: f8e064edb636380b1d78f3db39decb0cb9291d98
5
5
  SHA512:
6
- metadata.gz: 4c949d2eb0e7922d266d6a9b5e12eb0f42844d65bf7e5aea0f842f80f2787ad5406dd459fa2cb531b51a8ca48e82307aa3c931233c70d4edcb84376165785b3f
7
- data.tar.gz: 61d34927f0cb6108f4dbfd76130f0746aff2b4b15198b566dd4b2b6cdabe52cc4af56d5a3e894a70709ad740706f44677e173a6c81bd4edcfef1c05c7513348e
6
+ metadata.gz: bcb4a60e86eefa0b67a36bd7056b308200ce7f5ca81aea5605c3f865e33035c50777c26139775e18b7175d2bfd04ecdcca203a35fea5c635df470a0f980701a0
7
+ data.tar.gz: 9a4b12ff47b39bb095dec374bf2149543125f2f19f8ce7873f211342f7dc38cfbb9a6640ba7c64ca209a60f53c100bc4d0e2549b55eeaf40d682b002e5533995
Binary file
@@ -40,27 +40,10 @@ module OmniAuth
40
40
  #
41
41
  # }
42
42
  #
43
- def request_method
44
- if env['REQUEST_METHOD'] == 'GET'
45
- get_credentials
46
- end
47
- end
48
-
49
- def get_credentials
50
- form = OmniAuth::Form.new(:title => "User Info")
51
- options.fields.each do |field|
52
- form.text_field field.to_s.capitalize.gsub("_", " "), field.to_s
53
- end
54
- form.button "Sign In"
55
- form.to_response
56
- end
57
-
58
- def consumer
59
- consumer = ::OAuth::Consumer.new(options.consumer_key, options.consumer_secret, options.client_options)
60
- consumer.http.open_timeout = options.open_timeout if options.open_timeout
61
- consumer.http.read_timeout = options.read_timeout if options.read_timeout
62
- consumer
63
- end
43
+ def request_phase
44
+ options[:authorize_params] = {:perms => options[:scope]} if options[:scope]
45
+ super
46
+ end
64
47
 
65
48
  uid {raw_info['uid']}
66
49
 
Binary file
@@ -1,6 +1,6 @@
1
1
  module Omniauth
2
2
  module Campus
3
- VERSION = "0.4.7"
3
+ VERSION = "0.4.8"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-campus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnvehr