1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-17 06:52:27 +01:00

fix sso data mmaing: if no mapping were defined for an integer value, set the raw value

This commit is contained in:
Sylvain 2016-09-22 17:32:25 +02:00
parent 205c45060a
commit 81a6b996ee

View File

@ -65,6 +65,10 @@ module OmniAuth
break
end
end
# if no transformation had set any value, set the raw value
unless @parsed_info[local_sym(mapping)]
@parsed_info[local_sym(mapping)] = raw_info[mapping.api_endpoint.to_sym][mapping.api_field]
end
## BOOLEAN
when 'boolean'