omniauth-service-now 1.0.0 → 2.0.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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 401a619d8073b6e676320fa1ceed5e40234298a7fbd61c728e41a7bcec1b3921
|
4
|
+
data.tar.gz: 751f89bdcfadfad10faa316d23ffb9e48aacab36f966684e2babd92a58231fb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71b37df009b18ff5c8f0636bede9d2faaabc32619fd871d5fca0623bd5fb2f907684a0716e276c4ea6a1e3d7ea4e7c442903addb2e5ec7afe5d875aeb0435520
|
7
|
+
data.tar.gz: 0d0a051bcaf2015e6575be793aeef78fd958b00faf547f20476fe180ea4d59d11a7134ed1ad7a6fc44086e11d42281dc3d1e8665a56cf5f343f186aa27a151be
|
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.0.0'
|
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.0
|
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-01-04 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.0.0
|
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.0.0
|
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:
|