Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Adding LTI Activity Moodle #62

Closed
LukeDuffy98 opened this issue Sep 25, 2020 · 3 comments
Closed

Adding LTI Activity Moodle #62

LukeDuffy98 opened this issue Sep 25, 2020 · 3 comments

Comments

@LukeDuffy98
Copy link

Hi

When trying to configure a newly added LTI activity in Moodle, I receive the error :
You are not enrolled in this course.

I am following the steps https://github.com/microsoft/Learn-LTI/blob/main/docs/USER_GUIDE.md#Create-an-assignment-in-Moodle-leveraging-Microsoft-Learn-LTI-application

and I am at step 7.

I am expecting to see a page similar to : https://github.com/microsoft/Learn-LTI/blob/main/docs/USER_GUIDE.md#Customize-Review-and-Publish-the-assignment

I believe everything is configured correctly.
image

Thanks

@adbindal
Copy link
Contributor

Hi @LukeDuffy98 ,

Thanks a lot for reporting the issue. As stated, the failure is in Users Function App which is not being able to find the user (signed-in via AAD) enrolled into the current course. To prove this theory, please check that the return code for /me API in the Chrome DevTools network tab is http204 (i.e. No-Content).

  • As a quick question, could you please let us know whether your tool is onboarded using LTI1.1 or LTI1.3?
  • In our experience, as I remember, the only case when this happens is when user signs into Learn-LTI app with an onmicrosoft.com account which does not map to the email of any of the enrolled users of the course.

Additionally, you could use the following steps to understand the Azure function behavior and help us with the more details on your issue.

Troubleshooting

Azure Function Traces

This should provide details related to the execution context and state of the function execution when it would've returned http204.

  • Goto your Resource Group inside Azure and select Function App matching users-XXXXXXX.
  • Select Functions Blade in Left Hand Pane. Select GetUserDetails afterwards.
  • Choose Monitor Blade in LHP and you should see the Invocation Traces.
  • Clicking on the failing trace should provide more details related to Server logs for that function invocation to help you.

Failures (Exceptions) in App Insights

  • Go to your Resource Group inside Azure and select Application Insights resource matching users-XXXXXXX.
  • Select Failures Blade in LHP and then choose Exceptions Tab.
  • The subsequent screen should indicate any exceptions that were thrown as a part of function execution and should provide more insights into what might've gone wrong on server when executing GetUserDetails api.

We'd request you to please share the above details with us in order for us to be able to help you in a better way. Since the details might contain some private information as well. Please feel free to reach out to us via email at learnlti@microsoft.com.

@koolala
Copy link

koolala commented Sep 28, 2020

HI @LukeDuffy98

I had this message before.
In my case, my account (admin right) has not enroll to the Moodle's course. Then, I enrolled my account as a Trainer.

After enrolled, the LTI application page will show the content.
image

@LukeDuffy98
Copy link
Author

LukeDuffy98 commented Sep 28, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants