Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The score page's post message should send both the current score and the score that would be sent via LTI #81

Open
iturgeon opened this issue Sep 18, 2019 · 0 comments

Comments

@iturgeon
Copy link
Member

The postmessage currently only sends the score the student obtained on the current test. It would be nice to also know the score that will be sent back to the LMS via LTI (it is actually the highest of all the student's scores, not the current).

Keep in mind this message is sent all the time, even when there is no LTI integration, so you'd need to handle that too.

Expert mode - we could find a way to sign this data with oath using the lti oauth key and secret if it is an LTI launch. With a custom integration in Obojobo - this would allow us to verify the message in the browser instead of waiting for the LTI score passback.

const _sendPostMessage = (type, data) => {
parent.postMessage(JSON.stringify({ type, source: 'score-core', data }), '*')
}

Score data from:
https://github.com/ucfopen/Materia/blob/master/fuel/app/modules/lti/classes/ltievents.php#L117-L121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant