app/controllers/verify/authentications_controller.rb
# Callback where Verify will POST the SAML response for the authentication
# attempt, as described here:
#
#   https://www.docs.verify.service.gov.uk/get-started/set-up-successful-verification-journey/#handle-a-response
Callback where Verify will POST the SAML response for the authentication
attempt, as described here.


Callback where Verify will POST the SAML response for the authentication attempt as described here .
def create
      @response = Verify::Response.translate(saml_response: params["SAMLResponse"], request_id: session[:verify_request_id], level_of_assurance: "LEVEL_2")
      report_redacted_response
      if @response.verified?
        parser = Claim::VerifyResponseParametersParser.new(@response.parameters)
        current_claim.update!(parser.attributes)
        redirect_to claim_url(current_policy_routing_name, "verified")
      else
        redirect_to verify_path_for_response_scenario(@response.scenario)
      end
    end
def create @response = Verify :: Response . translate ( saml_response : params [ "SAMLResponse" ] , request_id : session [ :verify_request_id ] , level_of_assurance : "LEVEL_2" ) report_redacted_response if @response . verified? parser = Claim :: VerifyResponseParametersParser . new ( @response . parameters ) current_claim . update! ( parser . attributes ) redirect_to claim_url ( current_policy_routing_name , "verified" ) else redirect_to verify_path_for_response_scenario ( @response . scenario ) end end
Callback where Verify will POST the SAML response for the authentication
attempt, as described here:
Callback where Verify will POST the SAML response for the authentication attempt as described here :