Oauth2 Server

Premium Certified Partner
This plugin provides an OAuth2 server so that a user can use its Moodle account to log in to external applications.
Price option: Free

Supports Moodle 4.5-5.1 See all versions
Latest release: 3 months ago
Installations: 201
Downloads (last 90 days): 547

Frankenstyle name: local_oauth2
Local plugins

Comments

Comments are no longer open for new posts. Existing comments remain available to read.

Does this plugin support Moodle 5.2?
@Toni Feliu de Cabrera Salas, as discussed, we’ve updated the documentation (section 6: ‘Using the OAuth2 Access Token – userinfo’) and added the userinfo feature to support your request. Adding this note in case it’s useful to others.
@Lakshmi, PKCE support has now been added to the latest version of the plugin. Regards
Hey, I have a few doubts about token usage once created, (thank you for the plugin):
I can complete the auth code flow and get an access_token/refresh_token via /local/oauth2/token.php, but I can't use the Bearer token to call Moodle Web Services (e.g. /webservice/rest/server.php expects wstoken). The docs say: "The access_token is the one you will use to make requests to the Moodle API." Therefore, which endpoints are intended here, and is there a supported way to use/exchange this token for WS calls?
Hi Lakshmi,
The plugin does not currently support full PKCE, but we are planning to add it, as it seems to be helpful for MCP clients.
Regards
is it support pkce
Approval issue created: CONTRIB-9876