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 +4 -4
- data/lib/omniauth-mpassid/version.rb +1 -1
- data/lib/omniauth/strategies/mpassid.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a770c2ddeedb891769b008bdf1c6d5b51173292f93c4ae4809b5cb0f436ed1d
|
4
|
+
data.tar.gz: c530e5e766077b2246ec409dc926d956026e62996da0ae1e866fe4f9add4c305
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb2aa56b300d50529c78fd5e111583997b8ba2bc8f8c78ac040edf205192e02d68eab543ad36444f2c730c6cde47f594f6ffcbc504a51b487fcf6723113f405e
|
7
|
+
data.tar.gz: 19e0641256b34649273e8e1fe945de96dca7f6e78f20c2aebaedfd10f6a125ad927b9970615c31a45c6bc5f3a4d68fd580cc281668edaf9f124519208af1e34e
|
@@ -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 `:
|
27
|
-
option :
|
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 :
|
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.
|
350
|
-
options.
|
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.
|
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.
|
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:
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-saml
|