Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rbjarnason committed Jan 29, 2014
1 parent 6334a12 commit 1582b7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/votes_controller.rb
Expand Up @@ -243,6 +243,8 @@ def perform_island_is_token_authentication(token,request)
@response = soap.generateElectionSAMLFromToken(:token => token, :ipAddress=>request.remote_ip,
:electionId=>@config.election_id, :svfNr=>@config.rsk_svf_nr)

Rails.logger.info("SAML response: #{@response.inspect}")

# SAML verification
saml_response_test = Onelogin::Saml::Response.new(@response.saml)
saml_response_test.settings = saml_settings
Expand Down Expand Up @@ -280,6 +282,7 @@ def perform_island_is_token_authentication(token,request)
Rails.logger.info("Authentication successful for #{national_identity_hash} #{@response.inspect}")
return true
rescue => ex
raise ex
Rails.logger.error(ex.to_s+"\n\n"+ex.backtrace.to_s)
Rails.logger.error(@response.inspect)
if @response.status.code=="8"
Expand Down

0 comments on commit 1582b7d

Please sign in to comment.