Skip to content

Commit

Permalink
Validate method is now called idp_cert_fingerprint_validator and is a…
Browse files Browse the repository at this point in the history
… lambda.
  • Loading branch information
bpedro committed Oct 14, 2014
1 parent de18afd commit b4d920a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/omniauth/strategies/saml.rb
Expand Up @@ -30,8 +30,8 @@ def callback_phase
end

# Call a fingerprint validation method if there's one
if options.idp_cert_fingerprint_validate_method
fingerprint_exists = eval(options.idp_cert_fingerprint_validate_method << '(\'' << response_fingerprint << '\')')
if options.idp_cert_fingerprint_validator
fingerprint_exists = options.idp_cert_fingerprint_validator[response_fingerprint]
unless fingerprint_exists
raise OmniAuth::Strategies::SAML::ValidationError.new("Non-existent fingerprint")
end
Expand Down

0 comments on commit b4d920a

Please sign in to comment.