Cvmcosta/ltijs-demo-server

Configuration Error: Cannot POST /

bennettyardley opened this issue · 1 comments

How is the client/server supposed to be configured in the LMS. I believe this is documentation issue. What I tried:

Client: http://localhost:3001
Server: http://localhost:3000

LMS Config:

  • Tool URL: http://localhost:3001/ (pointing to the client)
  • LTI version: LTI 1.3
  • Public key type: Keyset URL
  • Public keyset: http://localhost:3000/keys (pointing to the server)
  • Initiate login URL: http://localhost:3000/login (pointing to the server)

Then when I add the LTI to a course I get this error on the lms:
Cannot POST /

The log for the server is here:

  provider:main Receiving request at path: /login +3m

  provider:main Receiving a login request from: http://localhost/moodle +1ms

  provider:main Redirecting to platform authentication endpoint +18ms

  provider:main Target Link URI:  http://localhost:3001/ +0ms

  provider:main Login request:  +1ms

  provider:main { response_type: 'id_token',

  provider:main   response_mode: 'form_post',

  provider:main   id_token_signed_response_alg: 'RS256',

  provider:main   scope: 'openid',

  provider:main   client_id: 'weeU9086mNf24m3',

  provider:main   redirect_uri: 'http://localhost:3001/',

  provider:main   login_hint: '2',

  provider:main   nonce: 'z3piric19gpdrr427kv0f8jxe',

  provider:main   prompt: 'none',

  provider:main   state: '5d6f5be2d2e3c51f4c6344126a8019ebae71bc8d0d72382960',

  provider:main   lti_message_hint: '8',

  provider:main   lti_deployment_id: '3' } +1ms

Nothing appears to be wrong with this.

The log for the client has no errors.

I have been able to successfully configure an LTI when only using a server before, but I am running into difficulty trying to configure a client and server.

You have to build first.