drlippman / IMathAS

IMathAS Online Math Assessment
Other
110 stars 98 forks source link

Allow the Canvas OIDC hostname to be set in config. #402

Closed kittysnacks closed 11 months ago

kittysnacks commented 11 months ago

This is to support Canvas' new OIDC auth endpoints for LTI 1.3.

Use the following variables in config to set hostnames:

If the above variables are not set, default to the original hostnames:

drlippman commented 11 months ago

Out of curiosity, is there a reason to have this as something that needs to be set in $CFG, instead of just changing the values? Also, it looks like this doesn't do anything to changing the URL used by existing registrations, right?

kittysnacks commented 11 months ago

Out of curiosity, is there a reason to have this as something that needs to be set in $CFG, instead of just changing the values? Also, it looks like this doesn't do anything to changing the URL used by existing registrations, right?

I was asked to make the change in a manner that would move the values into config, vs values inlined with code. This does not modify any existing registrations, so a script will need to be run against the DB to update those.

drlippman commented 11 months ago

Gotcha. Given that Canvas is recommending all tools change to use the new URLs, I'm not going to merge this PR, and am just change the URLs hardcoded in the system in the near future. At that time I'll also add a migration to rewrite any existing registrations.