omniauth-bigcommerce 0.3.1 → 0.4.0

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
- SHA1:
3
- metadata.gz: 8618436093af6d83d82236494985dfe110886799
4
- data.tar.gz: 210c88c36c40ff4caf1cbb53deefc5d32858a5bb
2
+ SHA256:
3
+ metadata.gz: 3af39b941a02c794d0dd32d23dd53735584c7bea44a70ccadd9287a15380df7d
4
+ data.tar.gz: c2855cca3de541800353f135e45bcc6348452798309d20c8fac917a726c9643f
5
5
  SHA512:
6
- metadata.gz: ee45fa6f7e285b296f4b7b9408f3842142c4d98df6a5c92ceba55700c0f7f7bdfd1c6a710f3d86052b1b800358c7c6cb3af7816544f5c01ec2f9a1d55443939f
7
- data.tar.gz: ff219bad1d042f964c95dd43d4c7dc105660461b6cddd3da3e4419a3acd28eaa9570c2da93dff2d0301d61a23676bdf909c3e9f399252b7387c855fe832acb67
6
+ metadata.gz: f1e96c3c8d51feb08dbf98b3c7a47ef53bc897ee347528a2e446049220887381cafe9c3fc32f4a6cf91ee72ab297f631d4982c39c3d2318930014572345124a3
7
+ data.tar.gz: 61659f051ced9dd8560bb6308d32c42b9ff52d1a1e5c7a0ddbf1df91a5670733df6f0b4fbd42d8a0d7c999dcf588fd958f8997b04afd3b66096606730e3741c2
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # OmniAuth Bigcommerce Strategy
2
2
  [![Build Status](https://travis-ci.org/bigcommerce/omniauth-bigcommerce.png?branch=master)](https://travis-ci.org/bigcommerce/omniauth-bigcommerce)
3
3
 
4
- This gem provides a dead simple way to authenticate to Bigcommerce using OmniAuth.
4
+ This gem provides a simple way to authenticate to Bigcommerce using OmniAuth.
5
5
 
6
6
  ## Installation
7
7
 
@@ -42,14 +42,14 @@ It defaults to https://login.bigcommerce.com if the env variable is not defined.
42
42
 
43
43
  ## Auth Hash Schema
44
44
 
45
- The following information is provided back to you for this provider:
45
+ The following response format is provided back to you for this provider:
46
46
 
47
47
  ```
48
48
  {
49
49
  uid: '12345',
50
50
  info: {
51
- name: 'Philip Muir',
52
- email: 'philip.muir@example.com'
51
+ name: 'John Doe',
52
+ email: 'john.doe@example.com'
53
53
  },
54
54
  credentials: {
55
55
  token: 'xyz123abc'
@@ -57,7 +57,8 @@ The following information is provided back to you for this provider:
57
57
  extra: {
58
58
  raw_info: {},
59
59
  scopes: 'requested_scopes store_v2_settings'
60
- context: 'store/xyz123'
60
+ context: 'store/xyz123',
61
+ account_uuid: 'fooBar'
61
62
  }
62
63
  }
63
64
  ```
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
@@ -15,6 +17,6 @@
15
17
  #
16
18
  module OmniAuth
17
19
  module BigCommerce
18
- VERSION = '0.3.1'.freeze
20
+ VERSION = '0.4.0'
19
21
  end
20
22
  end
@@ -25,7 +25,7 @@ module OmniAuth
25
25
  option :provider_ignores_state, true
26
26
  option :scope, 'users_basic_information'
27
27
  option :authorize_options, [:scope, :context]
28
- option :token_options, [:scope, :context]
28
+ option :token_options, [:scope, :context, :account_uuid]
29
29
  option :client_options,
30
30
  site: ENV.fetch('BC_AUTH_SERVICE', 'https://login.bigcommerce.com'),
31
31
  authorize_url: '/oauth2/authorize',
@@ -51,7 +51,8 @@ module OmniAuth
51
51
  {
52
52
  raw_info: raw_info,
53
53
  scopes: raw_info['scope'],
54
- context: raw_info['context']
54
+ context: raw_info['context'],
55
+ account_uuid: raw_info.fetch('account_uuid', '')
55
56
  }
56
57
  end
57
58
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Copyright (c) 2017-present, BigCommerce Pty. Ltd. All rights reserved
2
4
  #
3
5
  # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
@@ -13,7 +15,7 @@
13
15
  # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
14
16
  # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
15
17
  #
16
- require File.expand_path('../lib/omniauth/bigcommerce/version', __FILE__)
18
+ require File.expand_path('lib/omniauth/bigcommerce/version', __dir__)
17
19
 
18
20
  Gem::Specification.new do |gem|
19
21
  gem.authors = ['BigCommerce Engineering']
@@ -29,7 +31,7 @@ Gem::Specification.new do |gem|
29
31
  gem.version = OmniAuth::BigCommerce::VERSION
30
32
  gem.license = 'MIT'
31
33
 
32
- gem.add_dependency 'oauth2', '~> 1.3.1'
34
+ gem.add_dependency 'oauth2', '>= 1.4.4'
33
35
  gem.add_dependency 'omniauth'
34
36
  gem.add_dependency 'omniauth-oauth2', '>= 1.5'
35
37
  gem.add_development_dependency 'rake'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-bigcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BigCommerce Engineering
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2022-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.3.1
19
+ version: 1.4.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.3.1
26
+ version: 1.4.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ homepage: https://github.com/bigcommerce/omniauth-bigcommerce
111
111
  licenses:
112
112
  - MIT
113
113
  metadata: {}
114
- post_install_message:
114
+ post_install_message:
115
115
  rdoc_options: []
116
116
  require_paths:
117
117
  - lib
@@ -126,9 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.6.14
131
- signing_key:
129
+ rubygems_version: 3.3.4
130
+ signing_key:
132
131
  specification_version: 4
133
132
  summary: Official OmniAuth strategy for BigCommerce.
134
133
  test_files: []