tl-its-umich-edu / canvas-app-explorer

A Web application that presents a list of Canvas external (LTI) tools with details. When integrated within Canvas, the user can search for specific LTI tool(s), and add or remove those tools from Canvas courses.
Apache License 2.0
4 stars 6 forks source link

Disable old admin backend and trust LTI for users that are admin #147

Closed jonespm closed 2 years ago

jonespm commented 2 years ago

We currently have a backend login for admin that we're using in the LTI version. When in LTI this should be disabled and there should be some link displayed for users who are super users in the database to be able to click on and access the admin interface.

This link may need to be added to plasmic or maybe we can just put it in the corner. We currently don't have any menus in this app but maybe it could use a ☰ left of the "Canvas App Explorer" title and admin could be in there. Not sure what else though?

jonespm commented 2 years ago

The link part was implemented on #207

jonespm commented 2 years ago

I updated the Wiki with the new instructions for this.

zqian commented 2 years ago

I verified in an incognito window, went to https://test-cae.tl.it.umich.edu/admin/, I got redirected to https://test-cae.tl.it.umich.edu/admin/login/?next=/admin/ with Server Error (500), and log message [log.py:224] Internal Server Error: /admin/login/

On the other hand, via LTI launch of CAE tool, and if I am marked as admin in Django (is_super_user), I can use the "ADMIN" link on the top right corner to go to the Admin UI.