omniauth-bigcommerce 0.3.3 → 0.4.0
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 +4 -4
- data/README.md +6 -5
- data/lib/omniauth/bigcommerce/version.rb +3 -1
- data/lib/omniauth/strategies/bigcommerce.rb +3 -2
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3af39b941a02c794d0dd32d23dd53735584c7bea44a70ccadd9287a15380df7d
|
|
4
|
+
data.tar.gz: c2855cca3de541800353f135e45bcc6348452798309d20c8fac917a726c9643f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1e96c3c8d51feb08dbf98b3c7a47ef53bc897ee347528a2e446049220887381cafe9c3fc32f4a6cf91ee72ab297f631d4982c39c3d2318930014572345124a3
|
|
7
|
+
data.tar.gz: 61659f051ced9dd8560bb6308d32c42b9ff52d1a1e5c7a0ddbf1df91a5670733df6f0b4fbd42d8a0d7c999dcf588fd958f8997b04afd3b66096606730e3741c2
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# OmniAuth Bigcommerce Strategy
|
|
2
2
|
[](https://travis-ci.org/bigcommerce/omniauth-bigcommerce)
|
|
3
3
|
|
|
4
|
-
This gem provides a
|
|
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
|
|
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: '
|
|
52
|
-
email: '
|
|
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.
|
|
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
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-bigcommerce
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
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:
|
|
11
|
+
date: 2022-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|
|
@@ -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,8 +126,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
127
|
version: '0'
|
|
128
128
|
requirements: []
|
|
129
|
-
rubygems_version: 3.
|
|
130
|
-
signing_key:
|
|
129
|
+
rubygems_version: 3.3.4
|
|
130
|
+
signing_key:
|
|
131
131
|
specification_version: 4
|
|
132
132
|
summary: Official OmniAuth strategy for BigCommerce.
|
|
133
133
|
test_files: []
|