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

Getting authentication error from canvas LMS when trying to sync grades #138

Open
bhagwandas opened this issue Jun 26, 2024 · 0 comments
Open

Comments

@bhagwandas
Copy link

For grade sync, in our tool, we tried to write line item into Canvas. During this, a call is made for getting token at following endpoint of canvas lms: /login/oauth2/token by pylit1.3 lib

with following params:

grant_type=client_credentials
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion=
scope=https://purl.imsglobal.org/spec/lti-ags/scope/lineitem+https://purl.imsglobal.org/spec/lti-ags/scope/lineitem.readonly+https://purl.imsglobal.org/spec/lti-ags/scope/result.readonly+https://purl.imsglobal.org/spec/lti-ags/scope/score+url

But canvas returns 500 error.

In canvas logs, this is what it shows:

Started POST "/login/oauth2/token" for 10.8.0.46 at 2024-06-25 18:24:31 +0000
Redis (0.456ms) get rails61:_account_lookup5/1 [127.0.0.1:6379]
Redis (0.331ms) get rails61:settings_for_plugin4/sessions [127.0.0.1:6379]
request throttling increment: [0,50.0,1719339871.378653,["client_identifier","session:1840e92e937a64fba82500e8b66a5fcb"],["count",0.
0],["last_touched",null]]
Redis (0.787ms) evalsha - [127.0.0.1:6379]
Processing by OAuth2ProviderController#token as /
Parameters: {"grant_type"=>"client_credentials", "client_assertion_type"=>"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"
, "client_assertion"=>"eyJhbGciOiJSUzI1NiIsImtpZCI6IjF3N3pfcHlTd0NPVlB2cEVwVjRYUEpXemF3QnJwMUF4TThtOWN4UEFhcHciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiIxMDAwMDAwMDAwMDAxMSIsInN1YiI6IjEwMDAwMDAwMDAwMDExIiwiYXVkIjoiaH
R0cHM6Ly9jYW52YXMubGFiLmNvbXB1d\nGVyL2xvZ2luL29hdXRoMi90b2tlbiIsImlhdCI6MTcxOTMzOTQyMCwiZXhwIjoxNzE5MzM5NDg1LCJqdGkiOiJsdGktc2VydmljZS10b2tlbi01MmNmYjMyYy0zM2QxLTQ2M2EtOTYyYi00NjRhMDEwZGZjYWYifQ.gsFk8y0xr
h22_9tyy83vY-G4ZObd4RT9NCMMEuB5ez\nqiVVvuuijal7hqJ9i-y5kRI6woy20fbCaiq8LBoRIVvvD73Oe2Hb0Q-OPI9JeQAalKvgiR6cR2cJLX41UmargTngLaE2tswbuF9YgBARTGt-85qws1SD2Xw4wDEbMu8BzC2iSJB6op9RnmmCnbE5IxT_tK2r5-IKNOwP4Er-f
12XvZazmn9WYNUU6_yyyFiavV_eNsnVLfUp\nhiVeFRzHP2zubmATlskumXjMwhWvSvV_NGgaRXPDttQP6NQNxJjzi3DFKwy0DS4zqYxXBcsfI3Yia2OkT0QpEdX-Ill1jx-rMFiMuALckhcPQfWYNvzeBfDO6RI01T9EZ4avhewFXEeyCIqeHOvsRzloR_GTw_ENzGwKFAg
Cg-drwcu94shHNvhl_w_Ld34o5vRi3Vp59BVb\nidRiqvS-tIc8OtvU9bW0tRJyhVl-NM7kimHErq9Dm9iPkTEVYnyxQGdVK7tV3OYghgdxw5JTJqLD80LFuCgdriYT9b4YebDXgb7i-bZDq2Q_o2AhCdXOlUaf8e8ZRhsOY5-sb7y93A75ZkNGpEpmi4DY-lZ8D5XIafiHZ
LhGP-xS2JnUUIouA_tz5YNuO51c3g1p_P_Yzf8R\nPNptAe4HIoGWtym6U32Qsd245k5mw", "scope"=>"https://purl.imsglobal.org/spec/lti-ags/scope/lineitem+https://purl.imsglobal.org/spec/lti-ags/scope/lineitem.readonly+ht
tps://purl.imsglobal.org/spec/lti-ags/scope/result.readonly+https://purl.imsglobal.org/spec/lti-ags/scope/score"}
[AUTH] Authlogic Validation Error: You did not provide any details for authentication.
[AUTH] Authlogic Failed Find
[AUTH] initial load: pseud -> , user ->
[AUTH] final user:

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

No branches or pull requests

1 participant