omniauth-suomifi 0.5.1 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/omniauth/strategies/suomifi.rb +9 -3
- data/lib/omniauth-suomifi/version.rb +1 -1
- 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: 5ae6b67d6aff0dd9bfd84eae7d7aa9f43dd11b6c8d7c70ad060bc3273cf578b1
|
4
|
+
data.tar.gz: 86ed12d7b0dd7efa5a92fc8e64c34dc222615b7e49772f453cd50fcd4a80953c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6533229602f2c653a2cfbca082ccaba8da6738aac0f01b8e97da9a4130bec0fbd46028495e6a9274e6208af814cf3da2789bf38cd0523fb8f8a4079324da79a0
|
7
|
+
data.tar.gz: 3a550a990316a80cc19e79495487452915608bbbbefba0f13b4009a303e39764e95aa86c801c830deeaac86898ae46c6e95b13ddf7b6e483ef800d4cf2110756
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OmniAuth Suomi.fi
|
2
2
|
|
3
|
-
[![Build Status](https://
|
3
|
+
[![Build Status](https://github.com/mainio/omniauth-suomifi/actions/workflows/ci_omniauth-suomifi.yml/badge.svg)](https://github.com/mainio/omniauth-suomifi/actions)
|
4
4
|
[![codecov](https://codecov.io/gh/mainio/omniauth-suomifi/branch/master/graph/badge.svg)](https://codecov.io/gh/mainio/omniauth-suomifi)
|
5
5
|
|
6
6
|
This is an unofficial OmniAuth strategy for authenticating with the Suomi.fi
|
@@ -488,6 +488,9 @@ module OmniAuth
|
|
488
488
|
}
|
489
489
|
end
|
490
490
|
|
491
|
+
attr_accessor :options
|
492
|
+
attr_reader :suomifi_thread
|
493
|
+
|
491
494
|
def initialize(app, *args, &block)
|
492
495
|
super
|
493
496
|
|
@@ -511,15 +514,18 @@ module OmniAuth
|
|
511
514
|
# fetched from the metadata. The options array is the one that gets
|
512
515
|
# priority in case it overrides some of the metadata or locally defined
|
513
516
|
# option values.
|
514
|
-
@
|
515
|
-
|
516
|
-
|
517
|
+
@suomifi_thread = Thread.new do
|
518
|
+
@options = OmniAuth::Strategy::Options.new(
|
519
|
+
suomifi_options.merge(options)
|
520
|
+
)
|
521
|
+
end
|
517
522
|
end
|
518
523
|
|
519
524
|
# Override the request phase to be able to pass the locale parameter to
|
520
525
|
# the redirect URL. Note that this needs to be the last parameter to
|
521
526
|
# be passed to the redirect URL.
|
522
527
|
def request_phase
|
528
|
+
suomifi_thread.join if suomifi_thread.alive?
|
523
529
|
authn_request = OneLogin::RubySaml::Authrequest.new
|
524
530
|
locale = locale_for_authn_request
|
525
531
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-suomifi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antti Hukkanen
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '2.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'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: ruby-saml
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.13.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.13.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
requirements:
|
160
160
|
- - ">="
|
161
161
|
- !ruby/object:Gem::Version
|
162
|
-
version: '
|
162
|
+
version: '2.5'
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
165
|
- - ">="
|