canvas-lms
canvas-lms copied to clipboard
Dynamic Registration Configuration Endpoint does not send openid under scopes_supported
Summary:
The Dynamic Registration spec requires that the LMS have openid listed as one of the scopes_supported.
This is currently not being sent.
Steps to reproduce:
- Make GET request to OIDC Configuration Endpoint
- Response does not include openid under
scopes_supportedkey
Expected behavior:
That openid is one of the scopes_supported
Actual behavior:
The openid scope is not included in the scopes_supported list.
Additional Notes
https://github.com/instructure/canvas-lms/blob/f608fbf319c2ffce66aef43645219853fae34914/app/controllers/security_controller.rb#L111 I believe this is the relevant line where this information comes from.
It looks like https://github.com/instructure/canvas-lms/commit/09996454a3a051322aa35ca94571b03dcc3151d0 has added "openid" as a supported scope now. However, when requesting the scope from the LMS, the user is presented with an error:
{
"errors": [
{
"field": "scopes",
"message": "cannot contain openid",
"error_code": null
}
]
}