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

How to use this gem? #121

Closed
joshfester opened this issue Jun 7, 2017 · 5 comments
Closed

How to use this gem? #121

joshfester opened this issue Jun 7, 2017 · 5 comments

Comments

@joshfester
Copy link

Are there any examples of how to handle the registration process and how to pass data back to the consumer after launch?

@abutterf
Copy link

abutterf commented Jun 7, 2017

If you are talking about LTI 2 then you can look at https://github.com/instructure/lti2_reference_tool_provider for an example of the registration process. As far as passing data back to the consumer after launch it depends on what you want to do. If you take users through the oauth process you can use their access token to make api calls to canvas.

@joshfester
Copy link
Author

Thank you. That example app was enough to get me off the ground! However, it does not use this LTI gem. I see no reference anywhere to this gem or it's functions

@abutterf
Copy link

There is another tool https://github.com/instructure/lti_originality_report_example that does use the gem however it doesn't follow the normal registration process because it needs access to a custom tool consumer profile so you won't want to follow that bit of it. But hopefully that will show you how an LTI 2 tool leverages the gem at least for tool registration with Canvas.

@joshfester
Copy link
Author

Thank you @abutterf !

@rivernate
Copy link
Contributor

Duplicate of #141

@rivernate rivernate marked this as a duplicate of #141 Nov 13, 2017
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

3 participants