omniauth-mpassid 0.2.1 → 0.3.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: 0ad530f57ac203cabecd26263fb3b354453accd9c090a6e5ee3fb7c93d9194ff
4
- data.tar.gz: '05595993304c718c6b147720243a53df052454560f6a1c78418298d218443ea4'
3
+ metadata.gz: 0a770c2ddeedb891769b008bdf1c6d5b51173292f93c4ae4809b5cb0f436ed1d
4
+ data.tar.gz: c530e5e766077b2246ec409dc926d956026e62996da0ae1e866fe4f9add4c305
5
5
  SHA512:
6
- metadata.gz: 2b46afa68f7a1b52b6558adfef5005fb1255c273a1865b3cd70b51bc3f9ba0fc67ed2975e03fe9041cf25013fb54933fb4f10d071bd46a73d6078e4b2136a32e
7
- data.tar.gz: 9ffc3151656b1611f1c9cd156383d7857564509011dc87e7432b7604b5c6433d39364c71e6f64075c975387b4acb219a212778730035cf56d15d0a94325e9cf0
6
+ metadata.gz: bb2aa56b300d50529c78fd5e111583997b8ba2bc8f8c78ac040edf205192e02d68eab543ad36444f2c730c6cde47f594f6ffcbc504a51b487fcf6723113f405e
7
+ data.tar.gz: 19e0641256b34649273e8e1fe945de96dca7f6e78f20c2aebaedfd10f6a125ad927b9970615c31a45c6bc5f3a4d68fd580cc281668edaf9f124519208af1e34e
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module MPASSid
5
- VERSION = '0.2.1'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -23,13 +23,13 @@ module OmniAuth
23
23
  # - fi_FI
24
24
  #
25
25
  # In case a valid language cannot be parsed from the parameter, the lang
26
- # parameter will default to `:idp_sso_target_url_default_lang`.
27
- option :idp_sso_target_url_lang_params, %w[locale language lang]
26
+ # parameter will default to `:idp_sso_service_url_default_lang`.
27
+ option :idp_sso_service_url_lang_params, %w[locale language lang]
28
28
 
29
29
  # This is the default language to be passed to IdP sign in redirect URL as
30
30
  # defined above. In case a valid language is not found from the request
31
31
  # parameters, this will be used instead.
32
- option :idp_sso_target_url_default_lang, 'fi'
32
+ option :idp_sso_service_url_default_lang, 'fi'
33
33
 
34
34
  # The request attributes for MPASSid
35
35
  option :request_attributes, [
@@ -346,8 +346,8 @@ module OmniAuth
346
346
  end
347
347
 
348
348
  def lang_for_authn_request
349
- if options.idp_sso_target_url_lang_params.is_a?(Array)
350
- options.idp_sso_target_url_lang_params.each do |param|
349
+ if options.idp_sso_service_url_lang_params.is_a?(Array)
350
+ options.idp_sso_service_url_lang_params.each do |param|
351
351
  next unless request.params.key?(param.to_s)
352
352
 
353
353
  lang = parse_language_value(request.params[param.to_s])
@@ -355,7 +355,7 @@ module OmniAuth
355
355
  end
356
356
  end
357
357
 
358
- options.idp_sso_target_url_default_lang
358
+ options.idp_sso_service_url_default_lang
359
359
  end
360
360
 
361
361
  def parse_language_value(string)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-mpassid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antti Hukkanen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-saml