Code Monkey home page Code Monkey logo

Comments (2)

renaatdemuynck avatar renaatdemuynck commented on August 20, 2024

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).

afbeelding

On the otherhand, if I choose Home first, subsequent clicks on the other paths do work.

from caccl.

gabeabrams avatar gabeabrams commented on August 20, 2024

Hi @renaatdemuynck

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.