AnsweredAssumed Answered

Canvas Grade passback not getting authenticated

Question asked by Nayana Rane on Aug 5, 2019
Latest reply on Aug 5, 2019 by Kona Jones

We are implemeting Canvas grade passback by posing to lis_outcome_service_url received while launching the assignment.

I have generated OAuth signature using all the parameter we receive except 'oauth_signature' but still not getting authorized and get response as 

 

Here is the xml I am using

<?xml version = "1.0" encoding = "UTF-8"?><imsx_POXEnvelopeRequest xmlns="http://www.imsglobal.org/services/ltiv1p1/xsd/imsoms_v1p0">
<imsx_POXHeader>
<imsx_POXRequestHeaderInfo>
<imsx_version>V1.0</imsx_version>
<imsx_messageIdentifier>999999123</imsx_messageIdentifier>
</imsx_POXRequestHeaderInfo>
</imsx_POXHeader>
<imsx_POXBody>
<replaceResultRequest>
<resultRecord>
<sourcedGUID>
<sourcedId>55-35-96-45-881bf9a8be65179c82c50bd4436a5675b48c64c5</sourcedId>
</sourcedGUID>
<result>
<resultScore>
<language>en</language>
<textString>0.88</textString>
</resultScore> <!-- Added element -->
<resultData>
<ltiLaunchUrl>https://bubba-nararao.benchmarkuniverse.com/lti?lti_submission_id=55</ltiLaunchUrl>
</resultData>
</result>
</resultRecord>
</replaceResultRequest>
</imsx_POXBody>
</imsx_POXEnvelopeRequest>

 

When I call this API through POSTMAN it works like a charm. Something is wrong when i Try to do with PHP laravel.

Outcomes