Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put_grade error 401 #80

Open
TarasPetrenk opened this issue May 20, 2022 · 7 comments
Open

put_grade error 401 #80

TarasPetrenk opened this issue May 20, 2022 · 7 comments
Labels
question Further information is requested

Comments

@TarasPetrenk
Copy link

Hey

My name is Taras
We faced with the issue described below:

We have a problem with the tool service.
For example, we have the service "IMS LTI Assignment and Grade Services" in your library is a method "put_grade" this method makes a query "https://learn.catalynk.net/mod/lti/services.php/7/lineitems?type_id=3" in order to see line-items in the log this query returns 401

image
and such an error with "IMS Titles and LTI roles” on this request “https://learn.catalynk.net/mod/lti/services.php/CourseSection/7/bindings/3/memberships”.

image
This error occurred after the deployment on Heroku local errors are not local, I used this docker-compose for moodle

image

I think my moodle settings are correct

image
image

Maybe you'll have some ideas

Also here is a piece of code for a clear understanding

image

Thanks and look forward to hear your thoughts
Taras

@cmurtaugh
Copy link
Contributor

I get the same error with Canvas.

@hmoffatt
Copy link
Contributor

hmoffatt commented Jun 8, 2022

Same issue as #68 I think. It's assuming it has permission to access the line items without checking the scope.

@cmurtaugh
Copy link
Contributor

I've granted all of the scopes on the Canvas end, so I'm not sure that this is the same as #68. I feel like I'm missing something regarding the key configuration. In all other LTI 1.3 setups I've seen, the tool vendor needs the key generated by Canvas (in step 3 here it would be accessed by clicking the "Show Key" button). It seems to me that my sample tool is trying to access LTI Advantage services without an access token.

@TarasPetrenk
Copy link
Author

I started writing in the existing line but a new error appeared.
image
You may know how to disable or bypass Mod_Security rules.

@hmoffatt
Copy link
Contributor

@TarasPetrenk your error is from your WAF (mod_security) blocking the request.

@dmitry-viskov dmitry-viskov added the question Further information is requested label Sep 10, 2022
@mgarefal
Copy link

Hello,
I am Manos.
I get the same error with moodle 3.8.2, when getting or putting grades.
Has someone managed to fix or workaround this error?

@mgarefal
Copy link

mgarefal commented Jan 21, 2023

Hello, I am Manos. I get the same error with moodle 3.8.2, when getting or putting grades. Has someone managed to fix or workaround this error?

I installed moodle version 3.11 and know there is the option of Keyset URL.
But still it doen't send grades.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants