omniauth-saml 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth-saml might be problematic. Click here for more details.
- data/lib/omniauth-saml/version.rb +1 -1
- data/lib/omniauth/strategies/saml.rb +6 -4
- metadata +4 -4
@@ -21,7 +21,7 @@ module OmniAuth
|
|
21
21
|
response = OmniAuth::Strategies::SAML::AuthResponse.new(request.params['SAMLResponse'])
|
22
22
|
response.settings = options
|
23
23
|
@name_id = response.name_id
|
24
|
-
@
|
24
|
+
@attributes = response.attributes
|
25
25
|
return fail!(:invalid_ticket, 'Invalid SAML Ticket') if @name_id.nil? || @name_id.empty?
|
26
26
|
super
|
27
27
|
rescue ArgumentError => e
|
@@ -33,12 +33,14 @@ module OmniAuth
|
|
33
33
|
|
34
34
|
info do
|
35
35
|
{
|
36
|
-
:name => @
|
37
|
-
:email => @
|
36
|
+
:name => @attributes[:name],
|
37
|
+
:email => @attributes[:email] || @attributes[:mail],
|
38
|
+
:first_name => @attributes[:first_name] || @attributes[:firstname],
|
39
|
+
:last_name => @attributes[:last_name] || @attributes[:lastname]
|
38
40
|
}
|
39
41
|
end
|
40
42
|
|
41
|
-
extra { @
|
43
|
+
extra { { :raw_info => @attributes } }
|
42
44
|
|
43
45
|
end
|
44
46
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-saml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 1
|
10
|
+
version: 0.9.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Raecoo Cao
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-02-
|
20
|
+
date: 2012-02-23 00:00:00 -05:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|