dmitry-viskov / pylti1.3-flask-example

PyLTI1p3 Flask usage example
MIT License
19 stars 29 forks source link

Get error Invalid redirect_url after clicking deep link #28

Closed Chengze-Wu closed 3 months ago

Chengze-Wu commented 8 months ago

Hi,

I followed the steps from Using the pyLTI1p3 Library with Learn to learn how LTI 1.3 works.

Everything went well until we got this error.

image We have the deep link deployed successfully, but it throws this error when I click on the link. image

Does anyone get this issue?

Thanks! Travis

besonn commented 4 months ago

The same error happened to me. I tried to run deep link in Moodle but failed. Did you fix this error? @Chengze-Wu

Chengze-Wu commented 4 months ago

The same error happened to me. I tried to run deep link in Moodle but failed. Did you fix this error? @Chengze-Wu

Yes, I did fix it. resource.set_url(launch_url + '?difficulty=' + difficulty) \ .set_custom_params({'difficulty': difficulty}) \ .set_title('Breakout ' + difficulty + ' mode!') should be resource.set_url(launch_url) \ .set_custom_params({'difficulty': difficulty}) \ .set_title('Breakout ' + difficulty + ' mode!')

besonn commented 4 months ago

The same error happened to me. I tried to run deep link in Moodle but failed. Did you fix this error? @Chengze-Wu

Yes, I did fix it. resource.set_url(launch_url + '?difficulty=' + difficulty) \ .set_custom_params({'difficulty': difficulty}) \ .set_title('Breakout ' + difficulty + ' mode!') should be resource.set_url(launch_url) \ .set_custom_params({'difficulty': difficulty}) \ .set_title('Breakout ' + difficulty + ' mode!')

@Chengze-Wu Thank you so much! I have solved this!