Help Needed: LTI 1.3

I'm new to LTI, so I've decided to create a small application to learn more about it. However, every time I make a call to the authenticate end-point, I receive a 404 error.

This is the endpoint I'm calling from the LTI tool.

public IActionResult Login([FromForm] string iss, [FromForm] string login_hint, [FromForm] string client_id, [FromForm] string lti_message_hint)
{
if (string.IsNullOrEmpty(iss) || string.IsNullOrEmpty(login_hint) || string.IsNullOrEmpty(client_id))
{
return BadRequest(new { message = "..." });
} var authEndpoint = "https://{*}.desire2learn.com/d2l/lti/authenticate";

var redirectUrl = $"{authEndpoint}" +
$"?client_id={client_id}" +
$"&redirect_uri=https://ecplus-test.ngrok.io/api/lti/callback" +
$"&response_type=id_token" +
$"&prompt = none" +
$"&scope=openid" +
$"&response_mode=form_post" +
$"&nonce=" + Guid.NewGuid().ToString() +
$"&login_hint={login_hint}" +
$"&lti_message_hint={lti_message_hint}" +
$"&state=" + Guid.NewGuid().ToString();

return Redirect(redirectUrl); }

Can anyone provide insights into what might be going wrong? Any help would be greatly appreciated.

Thank you!

Tagged:

Answers