omniauth-service-now 1.0.0 → 2.0.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 123d35fff02c6cfa91bb2577746635e75f05afc19eb7bba9168088db26cbb152
|
4
|
+
data.tar.gz: 13f295ffb0824ad2b62fd35138834ed8e7e6f577b9a922c2c946b3307ac74ab6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 066fea62d3cabf9ab728e6895d93d52b531154a9f1c09406358a6332db84d92041f437cdfa19171d95b93b2a2339be95b8cbe4051f73d32d6b7c5035678b4fb0
|
7
|
+
data.tar.gz: f2c3478a252b569060eb1dcbb16c909efe065373591670bce990559675ec1db13fbb99f509aa5f18bf717437e82d8ac908ea423d788f60fa4bcd5299fdfc4657
|
data/.github/workflows/ruby.yml
CHANGED
@@ -7,12 +7,12 @@ jobs:
|
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
strategy:
|
9
9
|
matrix:
|
10
|
-
ruby-version: ["
|
10
|
+
ruby-version: ["3.0", "3.1", "3.2", "3.3"]
|
11
11
|
|
12
12
|
steps:
|
13
|
-
- uses: actions/checkout@
|
13
|
+
- uses: actions/checkout@v3
|
14
14
|
- name: Set up Ruby ${{ matrix.ruby-version }}
|
15
|
-
uses:
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
16
|
with:
|
17
17
|
ruby-version: ${{ matrix.ruby-version }}
|
18
18
|
- name: Build and test with Rake
|
data/.gitignore
CHANGED
@@ -16,7 +16,9 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
gem.version = OmniAuth::ServiceNow::VERSION
|
18
18
|
|
19
|
-
gem.
|
19
|
+
gem.required_ruby_version = ">= 3"
|
20
|
+
|
21
|
+
gem.add_dependency 'omniauth', '~> 2'
|
20
22
|
gem.add_dependency 'omniauth-oauth2', '>= 1.4.0', '< 2.0'
|
21
23
|
gem.add_development_dependency 'rspec', '~> 3.5'
|
22
24
|
gem.add_development_dependency 'rack-test'
|
@@ -55,4 +55,26 @@ describe OmniAuth::Strategies::ServiceNow do
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
58
|
+
|
59
|
+
describe '#callback_url' do
|
60
|
+
let(:base_url) { 'https://example.com' }
|
61
|
+
|
62
|
+
context 'no script name present' do
|
63
|
+
it 'has the correct default callback path' do
|
64
|
+
allow(subject).to receive(:full_host) { base_url }
|
65
|
+
allow(subject).to receive(:script_name) { '' }
|
66
|
+
allow(subject).to receive(:query_string) { '' }
|
67
|
+
expect(subject.callback_url).to eq(base_url + '/auth/service_now/callback')
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context 'script name' do
|
72
|
+
it 'should set the callback path with script_name' do
|
73
|
+
allow(subject).to receive(:full_host) { base_url }
|
74
|
+
allow(subject).to receive(:script_name) { '/v1' }
|
75
|
+
allow(subject).to receive(:query_string) { '' }
|
76
|
+
expect(subject.callback_url).to eq(base_url + '/v1/auth/service_now/callback')
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
58
80
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-service-now
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Quentin Rousseau
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2'
|
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: '
|
26
|
+
version: '2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: omniauth-oauth2
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +125,7 @@ homepage: https://github.com/kwent/omniauth-service-now
|
|
125
125
|
licenses:
|
126
126
|
- MIT
|
127
127
|
metadata: {}
|
128
|
-
post_install_message:
|
128
|
+
post_install_message:
|
129
129
|
rdoc_options: []
|
130
130
|
require_paths:
|
131
131
|
- lib
|
@@ -133,15 +133,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
133
133
|
requirements:
|
134
134
|
- - ">="
|
135
135
|
- !ruby/object:Gem::Version
|
136
|
-
version: '
|
136
|
+
version: '3'
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
|
-
rubygems_version: 3.
|
144
|
-
signing_key:
|
143
|
+
rubygems_version: 3.5.3
|
144
|
+
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: Official OmniAuth strategy for ServiceNow.
|
147
147
|
test_files:
|