Coder Social home page Coder Social logo

Issues with Hosted LTIJS server about ltijs HOT 5 CLOSED

cvmcosta avatar cvmcosta commented on July 18, 2024
Issues with Hosted LTIJS server

from ltijs.

Comments (5)

GreenOn avatar GreenOn commented on July 18, 2024 2

Yes, if I use non-localhost environment for the platform, it authenticates correctly. I am proceeding further with integration now. Thanks a lot!
I also turned off the dev mode.

    cookies: {
      secure: true, // Set secure to true if the testing platform is in a different domain and https is being used
      sameSite: 'None', // Set sameSite to 'None' if the testing platform is in a different domain and https is being used
      domain: '.tool'
    },
    devMode: false // Set DevMode to true if the testing platform is in a different domain and https is not being used

from ltijs.

GreenOn avatar GreenOn commented on July 18, 2024 1

I see. Let me try the https://sandbox.moodledemo.net/ instead of localhost to see if it works.

from ltijs.

Cvmcosta avatar Cvmcosta commented on July 18, 2024

Hello, your Moodle platform is hosted locally, correct? This means that when ltijs tries to validate the idtoken, it hits
the moodle keyset endpoint on localhost http://localhost/mod/lti/certs.php. The request fails because Moodle is not in the same machine, so attempting to connect to localhost does not work:

2020-10-19T05:09:30.498Z provider:auth Retrieving key from jwk_set
2020-10-19T04:59:25.528Z provider:auth RequestError: connect ECONNREFUSED 127.0.0.1:80

from ltijs.

GreenOn avatar GreenOn commented on July 18, 2024

from ltijs.

Cvmcosta avatar Cvmcosta commented on July 18, 2024

What i mean is, are Moodle and the LTI server hosted in the same machine? Because if they are not, the localhost call to the Moodle keyset endpoint will not work.

from ltijs.

Related Issues (20)

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.