omniauth-latvija 6.1.0 → 6.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/omniauth/strategies/latvija/response.rb +6 -0
- data/lib/omniauth/strategies/latvija.rb +1 -0
- data/lib/omniauth-latvija/version.rb +1 -1
- 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: 8b140f9721c2fdb31f45a4eb5f51fe2e1894eba947a7780f558a146437e5502d
|
4
|
+
data.tar.gz: 9ea9f446de8b2b46318a991fbcd45f5ca6f6a40c6eff4ca57ceff24357bdcbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c767e7a9317f8ff47b8952c1f259903a9dbd520c35930f6c3eeb6c1abcb8974845766b5738d10b73a6abab3b07b73a30a2609eac789ee08fa18ad2f223ee0ea9
|
7
|
+
data.tar.gz: bc4456fa4a1f83b5d86376568121dfd59a6f1a7815846e3a3e65d6f0db76ddaa0cf424a2cc3f636af38bad56c0d4ba8ab2012fce51b0a654752eb7c7c1c5b7d9
|
data/README.md
CHANGED
@@ -63,7 +63,8 @@ Here's an example hash available in `request.env['omniauth.auth']`
|
|
63
63
|
not_valid_before: '2019-05-09T07:29:41Z',
|
64
64
|
not_valid_on_or_after: '2019-05-09T08:29:41Z'
|
65
65
|
},
|
66
|
-
authentication_method: '
|
66
|
+
authentication_method: 'URN:IVIS:100001:AM.BANK-SWED',
|
67
|
+
original_issuer: 'Swedbanka',
|
67
68
|
legacy_uids: ['JANIS BERZINS, 12345612345']
|
68
69
|
}
|
69
70
|
}
|
@@ -26,6 +26,12 @@ module OmniAuth::Strategies
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
+
def original_issuer
|
30
|
+
@original_issuer ||= begin
|
31
|
+
xml.xpath("//saml:Attribute[@AttributeName='givenname']", saml: ASSERTION).attribute('OriginalIssuer')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
29
35
|
def name_identifier
|
30
36
|
@name_identifier ||= begin
|
31
37
|
xml.xpath('//saml:AuthenticationStatement/saml:Subject/saml:NameIdentifier', saml: ASSERTION).text()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-latvija
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|