directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
507 stars 204 forks source link

Redirect to "Page Not Found" after SSO #2297

Open Icepick opened 4 years ago

Icepick commented 4 years ago

Bug Report

When I log in with SSO, I get redirected to the "Not Found" page. This only occurs when using SSO. Login via user/password works fine.

Steps to Reproduce

1) go to login screen 2) log in via SSO provider 3) walk through the login process 4) directus is logging in / fetching all data / me endpoint is returning the correct lastpage (e.g. //collections) 5) redirects to Page Not Found 6) tracking endpoint is sending last_page = / to db

Expected Behavior

redirect to the right last_page

Actual Behavior

last_page seems to be ignored

Screenshots

Untitled

Technical Details

Device: all Directus Release Version: 8.4 Install Method: via docker

rijkvanzanten commented 4 years ago

What is the page it redirects you to?

Icepick commented 4 years ago

When using SSO I get redirected to http://directus.localtest.me/admin/#/.

When using Username + Password I get redirected to http://directus.localtest.me/admin/#/_/collections.

It looks like that SSO overrides the existing last_page on every login with /.