omniauth-latvija 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -66,6 +66,7 @@ module OmniAuth
|
|
66
66
|
'last_name' => @response.attributes['surname'],
|
67
67
|
'private_personal_identifier' => @response.attributes['privatepersonalidentifier']
|
68
68
|
},
|
69
|
+
'authentication_method' => @response.authentication_method,
|
69
70
|
'extra' => @response.attributes
|
70
71
|
})
|
71
72
|
end
|
@@ -17,6 +17,12 @@ module OmniAuth
|
|
17
17
|
document.validate!(fingerprint)
|
18
18
|
end
|
19
19
|
|
20
|
+
def authentication_method
|
21
|
+
@authentication_method ||= begin
|
22
|
+
REXML::XPath.first(document, "//saml:AuthenticationStatement").attributes['AuthenticationMethod']
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
20
26
|
# A hash of alle the attributes with the response. Assuming there is only one value for each key
|
21
27
|
def attributes
|
22
28
|
@attributes ||= begin
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-latvija
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth
|