This is exactly what LTI is for. The documentation and such for implementing this can be found at http://www.imsglobal.org/developers/BLTI/
Dr. Chuck (CharlesSeverance) seems to be the public face for the IMS with regards to LTI. He has several videos floating about concerning the ideas and implementation of LTI.