express-ims-lti

Express middleware for the ims-lti module

Usage no npm install needed!

<script type="module">
  import expressImsLti from 'https://cdn.skypack.dev/express-ims-lti';
</script>

README

express-ims-lti

Build Status

This module provides a way to use the ims-lti module with Express. It is capable of detecting LTI login requests and intelligently restoring an LTI provider instance from an Express session automatically.

Usage

Usage for the module is fairly straightfoward.

var ltiMiddleware = require("express-ims-lti");

// ... Construct your application ...

app.use(ltiMiddleware({
  consumer_key: "key",       // Required.
  consumer_secret: "secret", // Required.
  store: {                   // Optional.
    type: "redis",           // If store is omitted memory will be used.
    client: redisClient      // Required when using Redis.
  }
}));