omniauth-icos 1.0.9 → 1.0.10

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: f3bcdf1bc6f039d3d4c8607cc78fa60c3db2f717
4
- data.tar.gz: fb32f7a07fb454e3e02628c1412d91a449bcf848
3
+ metadata.gz: 800689704c0c963d0ac03a812370ae7c8f6cc400
4
+ data.tar.gz: bf771c55dccdb1b82e66bc4affd7deb6507380c6
5
5
  SHA512:
6
- metadata.gz: fa311a272b255d1f2dc9f626882a35d3f600c6b59e2892d50e03b80ffc0c82387a2a8f8c9ce016d620396574438cead71d98f53052b8f6020092f632dc204f8f
7
- data.tar.gz: d4e0c85e6421bda91d456b6aa64983b11ad01f2707a6d7a4109743d5308592ec7ddc31488921c29d0f4d834e193b3ee7d2ba1be4a55324344b8bde6c29ad48a3
6
+ metadata.gz: d74ce7c01119ae5dc62542c066a94e235b1aca6bd1d7b99aeba499e23383a73a2d7e2e636681a04315cb8c48bd7a3e3839818348f3eaa1bbc39e3b7b546f59a5
7
+ data.tar.gz: 219d1ffa8c7667a02fbd7a110100ca214849ffb76ba351b573127763d5b04fc0eb7664a5e0d42c37e2d5eb4fa25f3baea9130199c5cbf0c7c32c216e8c3a3d3b
@@ -60,6 +60,12 @@ module OmniAuth
60
60
  end
61
61
 
62
62
  def callback_url
63
+ puts 'yes'
64
+ full_host + script_name + callback_path
65
+ end
66
+
67
+ def redirect_url
68
+ puts 'yes-22'
63
69
  options[:redirect_uri] || (full_host + script_name + callback_path)
64
70
  end
65
71
 
@@ -73,6 +79,16 @@ module OmniAuth
73
79
  raise ::Timeout::Error
74
80
  end
75
81
 
82
+ def build_access_token
83
+ puts 'BUILD'
84
+ options.token_params.merge!(:headers => {'Authorization' => basic_auth_header })
85
+ super
86
+ end
87
+
88
+ def basic_auth_header
89
+ 'Basic ' + Base64.strict_encode64("#{options[:client_id]}:#{options[:client_secret]}")
90
+ end
91
+
76
92
  def user_info
77
93
  @user_info ||= raw_info.nil? ? {} : raw_info['Result']
78
94
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module ICOS
3
- VERSION = '1.0.9'
3
+ VERSION = '1.0.10'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-icos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Anistratenko