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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b501b35e3685a3963f0f38ec951a345aae8d534dd3ce323566775eda8bb048bf
4
- data.tar.gz: f9e4ef1dff0294bd8ff5a4389be6bb6964a55b7fe5534c2c266d957515e33a4b
3
+ metadata.gz: 8b140f9721c2fdb31f45a4eb5f51fe2e1894eba947a7780f558a146437e5502d
4
+ data.tar.gz: 9ea9f446de8b2b46318a991fbcd45f5ca6f6a40c6eff4ca57ceff24357bdcbd8
5
5
  SHA512:
6
- metadata.gz: 03c8dc65d2f8a0290756e5b91d8b01bf9fff8dbbf038685566223e3ebb710fc5080e54c91c2b85fc22a32baa182fff4a00c7158d1f9868fce257ea7d3bc6de45
7
- data.tar.gz: 13a84d4d7b8caa0dbc8685fa7f18eb322d1319ce22f074aeefaa1cd169593abd4f7f3c0853174d640de0b69716c14a507abc04fa33e04272e130393e49118145
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: 'SWEDBANK',
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()
@@ -48,6 +48,7 @@ module OmniAuth::Strategies
48
48
  {
49
49
  raw_info: raw_info,
50
50
  authentication_method: @response.authentication_method,
51
+ original_issuer: @response.original_issuer,
51
52
  legacy_uids: legacy_uids
52
53
  }
53
54
  end
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Latvija
3
- VERSION = '6.1.0'
3
+ VERSION = '6.2.0'
4
4
  end
5
5
  end
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.1.0
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: 2020-09-02 00:00:00.000000000 Z
11
+ date: 2021-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth