Coder Social home page Coder Social logo

Comments (6)

jeffmiko avatar jeffmiko commented on August 18, 2024 1

I installed Moodle 3.7 on a clean virtual machine following the Ubuntu instructions and it is working now. I followed the steps in your Medium article. So it was definitely something to do with my docker setup or environment. I wonder if it had to do with DNS since I was running both Moodle and VSCode in docker containers. That's why I was trying to use IP addresses initially. Thanks for your help.

from ltijs.

Cvmcosta avatar Cvmcosta commented on August 18, 2024

Hello, your configuration looks correct at first glance.

i've been seeing some problems regarding the usage of ltijs with Bitnami Moodle, apparently their configuration causes some issues. I'm installing their Moodle Stack and trying to figure out what is wrong. It seems Bitnami's moodle is not receiving either the nonce or the lti_message_hint parameters correctly, i'll try to see what i can do to fix the issue and let you know.

In the meantime, do you have any other moodle instance you can try it with?

from ltijs.

Cvmcosta avatar Cvmcosta commented on August 18, 2024

Just to confirm, you are using this docker container, right?

from ltijs.

jeffmiko avatar jeffmiko commented on August 18, 2024

Yes that is the correct docker. I installed a clean Canvas in a virtual machine but I could not get the tool to work on that either. So I wanted to try Moodle so I used the easy docker container. I am going to install a moodle instance from scratch on virtual machine and test it

from ltijs.

Cvmcosta avatar Cvmcosta commented on August 18, 2024

Got it, i think i found the error, or at least what triggers it, Moodle throws this error when the platform domain does not match the endpoint's domain.

I repeated your exact code (only changed database configuration and platform urls) and tested against the same Bitnami Container. When using http://localhost as the platform url and http://localhost/mod/lti/auth.php as the authentication url everything worked fine, but when i changed the authentication url to http://192.168.0.12/mod/lti/auth.php i got the same error:

provider:main No LTIK found +0ms
provider:main Request body:  [Object: null prototype] { error: 'invalid_request', state: 'd40b78ada4a75671' }

And when i changed the main platform url to http://192.168.0.12 to match the endpoint's domain everything started working again.

from ltijs.

Cvmcosta avatar Cvmcosta commented on August 18, 2024

I see, i'm glad it worked out!

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.