o365-moodle icon indicating copy to clipboard operation
o365-moodle copied to clipboard

[OIDC] Make API Authorization(resource) optional

Open nakamume opened this issue 4 years ago • 0 comments

The OIDC plugin sends resource request for api authorization. The request is sent to https://graph.microsoft.com by default.

Screen Shot 2021-04-19 at 9 52 42

We use OIDC plugin just for authentication and not for any API authorization. In current state our IdP integration will always fail with Error in OpenID Connect: unauthorized ‘resource’ requested

Could we make Resource param null by default.

I'll open a PR for this

Edit: Opened a PR https://github.com/microsoft/moodle-auth_oidc/pull/48

nakamume avatar Apr 19 '21 02:04 nakamume