omniauth-idcat_mobil 0.3.0 → 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/.gitignore +0 -1
- data/CHANGELOG.md +4 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +92 -0
- data/README.md +1 -1
- data/lib/omniauth/idcat_mobil/version.rb +1 -1
- data/lib/omniauth/strategies/idcat_mobil.rb +1 -1
- data/omniauth-idcat_mobil.gemspec +3 -2
- metadata +21 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7e4590276c6eeb97e7f2be0d9ece1790acfe9cb9207ba1c568aa6808c1313845
|
|
4
|
+
data.tar.gz: 372bd3d70d5880384377bbeb624ce4138b1260aa58365dd0bdb54c234b115074
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5a66fcbe5c92a35a0d66f7371d02434c695067371dedfff8df0b4c740ad7c048b342a7d324580121bc8ba1882c0af49467cbe62226811d72acbcbb91356ba74
|
|
7
|
+
data.tar.gz: 0f6d134e5b12a944cd5ed723e23e8f751dfc77703919ec71db47ebc567b0e4f57b1918d980619e7a2182790cd61914964616ab64a638b56acf77be33f3fcdfe6
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## next version:
|
|
4
4
|
|
|
5
|
+
## Version 0.4.0 (MINOR)
|
|
6
|
+
- Upgrade omniauth to 2.0.4
|
|
7
|
+
|
|
5
8
|
## Version 0.3.0 (MINOR)
|
|
6
|
-
- CI:
|
|
9
|
+
- CI: Introduce continuous integration via GitHub Actions.
|
|
7
10
|
- CI: Apply `rubocop` recommendations.
|
|
8
11
|
|
|
9
12
|
## Version 0.2.4 (PATCH)
|
data/Gemfile
CHANGED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
omniauth-idcat_mobil (0.4.0)
|
|
5
|
+
omniauth (~> 2.0.4)
|
|
6
|
+
omniauth-oauth2 (>= 1.7.2, < 2.0)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
ast (2.4.2)
|
|
12
|
+
byebug (11.1.3)
|
|
13
|
+
diff-lcs (1.4.4)
|
|
14
|
+
faraday (2.3.0)
|
|
15
|
+
faraday-net_http (~> 2.0)
|
|
16
|
+
ruby2_keywords (>= 0.0.4)
|
|
17
|
+
faraday-net_http (2.0.3)
|
|
18
|
+
hashie (5.0.0)
|
|
19
|
+
jwt (2.3.0)
|
|
20
|
+
multi_json (1.15.0)
|
|
21
|
+
multi_xml (0.6.0)
|
|
22
|
+
oauth2 (1.4.9)
|
|
23
|
+
faraday (>= 0.17.3, < 3.0)
|
|
24
|
+
jwt (>= 1.0, < 3.0)
|
|
25
|
+
multi_json (~> 1.3)
|
|
26
|
+
multi_xml (~> 0.5)
|
|
27
|
+
rack (>= 1.2, < 3)
|
|
28
|
+
omniauth (2.0.4)
|
|
29
|
+
hashie (>= 3.4.6)
|
|
30
|
+
rack (>= 1.6.2, < 3)
|
|
31
|
+
rack-protection
|
|
32
|
+
omniauth-oauth2 (1.7.2)
|
|
33
|
+
oauth2 (~> 1.4)
|
|
34
|
+
omniauth (>= 1.9, < 3)
|
|
35
|
+
parallel (1.21.0)
|
|
36
|
+
parser (3.1.0.0)
|
|
37
|
+
ast (~> 2.4.1)
|
|
38
|
+
rack (2.2.3)
|
|
39
|
+
rack-protection (2.2.0)
|
|
40
|
+
rack
|
|
41
|
+
rack-test (1.1.0)
|
|
42
|
+
rack (>= 1.0, < 3)
|
|
43
|
+
rainbow (3.1.1)
|
|
44
|
+
rake (12.3.3)
|
|
45
|
+
regexp_parser (2.2.0)
|
|
46
|
+
rexml (3.2.5)
|
|
47
|
+
rspec (3.10.0)
|
|
48
|
+
rspec-core (~> 3.10.0)
|
|
49
|
+
rspec-expectations (~> 3.10.0)
|
|
50
|
+
rspec-mocks (~> 3.10.0)
|
|
51
|
+
rspec-core (3.10.1)
|
|
52
|
+
rspec-support (~> 3.10.0)
|
|
53
|
+
rspec-expectations (3.10.1)
|
|
54
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
55
|
+
rspec-support (~> 3.10.0)
|
|
56
|
+
rspec-mocks (3.10.2)
|
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
|
+
rspec-support (~> 3.10.0)
|
|
59
|
+
rspec-support (3.10.2)
|
|
60
|
+
rubocop (1.25.0)
|
|
61
|
+
parallel (~> 1.10)
|
|
62
|
+
parser (>= 3.1.0.0)
|
|
63
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
64
|
+
regexp_parser (>= 1.8, < 3.0)
|
|
65
|
+
rexml
|
|
66
|
+
rubocop-ast (>= 1.15.1, < 2.0)
|
|
67
|
+
ruby-progressbar (~> 1.7)
|
|
68
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
|
69
|
+
rubocop-ast (1.15.1)
|
|
70
|
+
parser (>= 3.0.1.1)
|
|
71
|
+
rubocop-rspec (2.8.0)
|
|
72
|
+
rubocop (~> 1.19)
|
|
73
|
+
ruby-progressbar (1.11.0)
|
|
74
|
+
ruby2_keywords (0.0.5)
|
|
75
|
+
unicode-display_width (2.1.0)
|
|
76
|
+
|
|
77
|
+
PLATFORMS
|
|
78
|
+
ruby
|
|
79
|
+
|
|
80
|
+
DEPENDENCIES
|
|
81
|
+
bundler (~> 2.2, >= 2.2.10)
|
|
82
|
+
byebug
|
|
83
|
+
omniauth-idcat_mobil!
|
|
84
|
+
rack (>= 2.1.4)
|
|
85
|
+
rack-test
|
|
86
|
+
rake (~> 12.3, >= 12.3.3)
|
|
87
|
+
rspec (~> 3.0)
|
|
88
|
+
rubocop
|
|
89
|
+
rubocop-rspec
|
|
90
|
+
|
|
91
|
+
BUNDLED WITH
|
|
92
|
+
2.3.6
|
data/README.md
CHANGED
|
@@ -46,7 +46,7 @@ For IdCat mòbil we still need to perform an extra step during the +callback_pha
|
|
|
46
46
|
|
|
47
47
|
### request_phase
|
|
48
48
|
|
|
49
|
-
`omniauth-idcat_mobil` does not implement this method, instead we rely
|
|
49
|
+
`omniauth-idcat_mobil` does not implement this method, instead we rely on the default implementation in `OmniAuth::Strategies::OAuth2`.
|
|
50
50
|
It simply redirects the user to the authentiction provider to authenticate.
|
|
51
51
|
When users finish with the authentication workflow in IdCat mòbil, this authentication provider redirects them to our `callback_phase`.
|
|
52
52
|
|
|
@@ -112,7 +112,7 @@ module OmniAuth
|
|
|
112
112
|
# The url where the provider should redirect the users to after authenticating.
|
|
113
113
|
# https://github.com/intridea/omniauth-oauth2/issues/81
|
|
114
114
|
def callback_url
|
|
115
|
-
full_host
|
|
115
|
+
File.join([full_host, script_name, callback_path].compact)
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
# --------------------------------------------------
|
|
@@ -24,9 +24,10 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
25
25
|
spec.require_paths = ["lib"]
|
|
26
26
|
|
|
27
|
-
spec.add_dependency "omniauth", "~>
|
|
28
|
-
spec.add_dependency "omniauth-oauth2", ">= 1.
|
|
27
|
+
spec.add_dependency "omniauth", "~> 2.0.4"
|
|
28
|
+
spec.add_dependency "omniauth-oauth2", ">= 1.7.2", "< 2.0"
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 2.2", ">= 2.2.10"
|
|
30
|
+
spec.add_development_dependency "byebug"
|
|
30
31
|
spec.add_development_dependency "rake", "~> 12.3", ">= 12.3.3"
|
|
31
32
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
32
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: omniauth-idcat_mobil
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oliver Valls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: omniauth
|
|
@@ -16,21 +16,21 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 2.0.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:
|
|
26
|
+
version: 2.0.4
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: omniauth-oauth2
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
31
|
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.
|
|
33
|
+
version: 1.7.2
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
36
|
version: '2.0'
|
|
@@ -40,7 +40,7 @@ dependencies:
|
|
|
40
40
|
requirements:
|
|
41
41
|
- - ">="
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
|
-
version: 1.
|
|
43
|
+
version: 1.7.2
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '2.0'
|
|
@@ -64,6 +64,20 @@ dependencies:
|
|
|
64
64
|
- - ">="
|
|
65
65
|
- !ruby/object:Gem::Version
|
|
66
66
|
version: 2.2.10
|
|
67
|
+
- !ruby/object:Gem::Dependency
|
|
68
|
+
name: byebug
|
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - ">="
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '0'
|
|
74
|
+
type: :development
|
|
75
|
+
prerelease: false
|
|
76
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
77
|
+
requirements:
|
|
78
|
+
- - ">="
|
|
79
|
+
- !ruby/object:Gem::Version
|
|
80
|
+
version: '0'
|
|
67
81
|
- !ruby/object:Gem::Dependency
|
|
68
82
|
name: rake
|
|
69
83
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -101,6 +115,7 @@ files:
|
|
|
101
115
|
- CHANGELOG.md
|
|
102
116
|
- CODE_OF_CONDUCT.md
|
|
103
117
|
- Gemfile
|
|
118
|
+
- Gemfile.lock
|
|
104
119
|
- LICENSE
|
|
105
120
|
- LICENSE.txt
|
|
106
121
|
- README.md
|