reharik/papers-lti

View on GitHub

Showing 2 of 4 total issues

Function strategy has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const strategy = function(validate, options) {

  // If it's intended to check tool consumer's identity from database
  // Dev will pass a function that handle it
  // This will get called when the request authenticates
Severity: Minor
Found in lib/strategy.js - About 1 hr to fix

    Function authenticate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const authenticate = function (_req) {
        // to accomidate koa
        let req = _req.request || _req;
        if (req.body.lti_message_type !== 'basic-lti-launch-request') {
          return {type: 'fail', details: {error: `Request isn't LTI launch`}};
    Severity: Minor
    Found in lib/strategy.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language