🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

caccl-canvas-partial-simulator

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caccl-canvas-partial-simulator

Partially simulates a Canvas instance, handling OAuth token exchanges and forwarding API requests

1.0.3
Source
npm
Version published
Weekly downloads
10
-50%
Maintainers
1
Weekly downloads
 
Created
Source

canvas-partial-simulator

Partially simulates a Canvas instance, handling OAuth token exchanges and forwarding API requests

Setup:

  • Initialize this Canvas simulation:
const initCanvasSimulation = require('canvas-partial-simulator');

initCanvasSimulation({
  accessToken: /* real access token for a user in Canvas */,
  consumerKey: /* the consumer key for the LTI app */,
  consumerSecret: /* the consumer secret for the LTI app */,
  canvasHost: /* the hostname for the real Canvas instance */,
  launchURL: /* the launch URL of the app, defaults to localhost/launch */,
});
  • Set your app's client id to client_id and its client secret to client_secret. These are your app's developerCredentials, not installationCredentials.

  • Set your app's canvasHost to localhost:8080.

Usage:

Simulated LTI launches

To simulate an LTI launch, visit: https://localhost:8088/course/:courseid/launch.

Keywords

Canvas

FAQs

Package last updated on 08 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts