omniauth-suomifi 0.6.0 → 0.6.2

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: 2312191c6d70426259424cd525b77161966b43b151e84b9269dc7fe61c828754
4
- data.tar.gz: a483682acfd192e66a87b4a556f9a61e7bbe63e9c9529635718005022c4f9e91
3
+ metadata.gz: 06c8999872e4f947d69c4c942bd507052fe99a3187b1eb9431fc5bed85e39402
4
+ data.tar.gz: 03e36ad409d752a71d4b1b1edb5c5398856c2d0b82d98c8bb92c77ed4582f3c8
5
5
  SHA512:
6
- metadata.gz: 856b8252bf76f046acb4788dcc5b5f4400a7dec5f7351c6fbae1fa17842335c805afcf008b32eddf856299f4b12e4bb6a6398ff7bbd2d84e5a70a59aca8cd0c8
7
- data.tar.gz: 775d337ab4941f7c9fa79f4dd4376b2cfdc9f2d5f1e57a5dc9abbb00b52f3888dba5c7d6103d429f22a98ec46353ada3954d12bd931b842eafcb2ed1f0088ee4
6
+ metadata.gz: df2caddab2c1592e824f1fb338f864349c8a6309b1999f664764afb46d16dc13f44a6b96048ded76020bcdeabcb583c3c468a60af0ccc8d4e3eebf2023f969a0
7
+ data.tar.gz: 579b0c5e580f757fefe744537aa73e69ba4f89a5f3bb72f1bcab408834940586f9d54d58f78fbd9c9e2a89a8478cfe7ad3be3c24354c561c5ceeb52090cf8cfb
@@ -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
- @options = OmniAuth::Strategy::Options.new(
515
- suomifi_options.merge(options)
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
 
@@ -608,9 +614,9 @@ module OmniAuth
608
614
  def idp_metadata_url
609
615
  case options.mode
610
616
  when :test
611
- 'https://testi.apro.tunnistus.fi/static/metadata/idp-metadata.xml'
617
+ 'https://static.apro.tunnistus.fi/static/metadata/idp-metadata.xml'
612
618
  else # :production
613
- 'https://tunnistus.suomi.fi/static/metadata/idp-metadata-tunnistautuminen.xml'
619
+ 'https://tunnistus.suomi.fi/static/metadata/idp-metadata.xml'
614
620
  end
615
621
  end
616
622
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module Suomifi
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-suomifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-08 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-saml
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
160
  - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: '0'
162
+ version: '2.5'
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="