LTI 1.3 invalid_request on POST OIDC

LTI 1.3 invalid_request on POST OIDC

by Mikołaj Buda -
Number of replies: 0

Hello!

I try to integrate my simple frontend app with LTI.

This is my login response on OIDC POST:

{

  "scope": "openid",

  "response_type": "id_token",

  "client_id": "my_id",

  "redirect_uri": "https://lovely-liger-13.loca.lt/project/submit",

  "login_hint": "2",

  "state": "DFY7YkpCMGF16Y5by32CsT7MNhJjO8",

  "response_mode": "form_post",

  "nonce": "DJe0Ld2hr70CgFkHOWaHeeqRN",

  "prompt": "none",

  "lti_message_hint": "25"

}

My configuration at Moodle side:

Tool Url: https://lovely-liger-13.loca.lt

Public key type: RSA with key provided in the following format:

-----BEGIN PUBLIC KEY-----

PbhHpvY3V7+gLFPFOjMOy8DJ6rig5jimokHu9zxmTiLtHvpdMCAwEAAQ==...

-----END PUBLIC KEY-----

Initiate login URLhttps://lovely-liger-13.loca.lt/oidc

Redirection URL(s): https://lovely-liger-13.loca.lt/project/submit

When I try to initiate Launch I get 400 on /project/submit with:

{"error":"invalid_request","errors":["Login Response was rejected: invalid_request"]}
How can I investigate it further? Are there some params missing?


Average of ratings: -