Comments (2)
Just found out that when I click on the extra Choose Path
buttons, before I click on the button for the Home
path, It isn't handled as an LTI launch (status.launched
is FALSE).
On the otherhand, if I choose Home
first, subsequent clicks on the other paths do work.
from caccl.
Due to the way that LTI apps are registered in Canvas (not all apps are registered, only the ones with API access), CACCL is designed to only support one launch path. The standard way of having multiple ways of launching the tool is to provide a custom parameter.
To see how these custom parameters are added, check out this lti xml builder form and use the "custom fields" area:
https://www.edu-apps.org/build_xml.html
All variations of the app will still use the same launch path, but use different custom fields. For example, you could have a custom field called "type" that could have values "course" or "user" or "admin".
Once the app is launched, the launchInfo
object will automatically contain a map called customParams
which is a key/value map of custom parameters. Here's a link to the launchInfo docs:
https://github.com/harvard-edtech/caccl-lti/blob/main/docs/LaunchInfo.md
I hope this helps!
Gabe
P.S. The custom launch paths field that you found for the dev environment is actually for a separate purpose. For self-launched apps, the user flow starts with visiting an unauthenticated path (e.g. /home/tutorials) which probably would log the user's destination, perform a self-launch, and then upon launch, redirect the user to the place they were trying to go. This doesn't seem to be the launch process that you're going for, so I would actually fully remove those custom launch paths.
from caccl.
Related Issues (16)
- How to add LTI to Canvas HOT 5
- Course context HOT 1
- Please launch this app via Canvas. HOT 4
- Trouble setting up project with init HOT 1
- Using CACCL on Windows HOT 1
- Unable to deploy on server HOT 2
- Cookie from Production Server Doesn't Get Sent Properly on HTTPS HOT 3
- Error while creating new project HOT 8
- App keeps asking for permission after deployment HOT 7
- What versions of LTI does this work with? HOT 6
- Integration with express API server app HOT 5
- Error using init HOT 7
- Error on installing with init HOT 2
- Which operating system & node version has this been tested with? HOT 2
- Chrome local dev http vs https sameSite cookie issue HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caccl.