acdh-oeaw / apis-core-rdf

APIS Core refactored
https://acdh-oeaw.github.io/apis-core-rdf/
MIT License
3 stars 3 forks source link

Logout/changing user from API views not possible #783

Closed koeaw closed 6 months ago

koeaw commented 7 months ago

I can't seem to log out from any API views/routes, i.e. the Django REST framework menu bar. When I click on the username in the top right corner:

Screenshot 2024-04-15 at 10-56-53 Api Root – Django REST framework

nothing happens. I'd expect to be presented with an option to log out equivalent to how it works on the regular, non-API menu bar.

Logging in when not already logged in, however, works fine. A click on "Log in" in the top right corner:

Screenshot 2024-04-15 at 10-58-59 Api Root – Django REST framework

redirects to this login mask (at api-auth/login/?next=/apis/api/):

Not sure if this is a problem with project-specific urls.py missing paths, missing redirects in API-related views, DRF JS/CSS, or other frontend settings clashing with DRF's (e.g. we have DJANGO_TABLES2_TEMPLATE = "django_tables2/bootstrap5-responsive.html" set in settings). No time to investigate right now, but wanted to report it in any case.

b1rger commented 7 months ago

The login and logout views are part of the DRF. They work fine in our setup.

koeaw commented 7 months ago

The login and logout views are part of the DRF. They work fine in our setup.

Thx. "Our" as in ÖBL?

b1rger commented 7 months ago

The login and logout views are part of the DRF. They work fine in our setup.

Thx. "Our" as in ÖBL?

No, in sicprod

koeaw commented 6 months ago

Hmm, this seems to have resolved itself, dunno why or how, possibly related to changes between v0.15.x and v0.17.3 (!?), but either way: both login and logout work fine now.