Using OAuth 2.0 to Access Moodle Web Service API from an External Tool

Using OAuth 2.0 to Access Moodle Web Service API from an External Tool

Gordana Tasic發表於
Number of replies: 1
Hello everyone,

I am currently developing an external tool for Moodle that uses LTI 1.3, and I need to access Moodle Web Service API functions from the tool. Specifically, I’m looking for guidance on how to obtain an access token via OAuth 2.0 authentication in the context of LTI 1.3, so I can make API calls. Has anyone successfully implemented this or could offer advice on how to get the token and use it for API access? Any help would be greatly appreciated.
Thank you in advance!
評比平均分數: -
In reply to Gordana Tasic

Re: Using OAuth 2.0 to Access Moodle Web Service API from an External Tool

Jake Dallimore發表於
Core developers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片 Testers的相片
At present, these are separate concepts in Moodle (web services vs LTI services). The LTI token is only valid for LTI services, while work is underway to modernise the web services in general (/MDL-76834), and that probably will involve adding the ability to access these using OAuth2. At this stage, there isn't formal support for doing this via LTI, however.