Storage: Non OIDC users have to reload storage

Offen
#461 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
authentication

Rechercherichtung

Start by tracing the storage connection form action and how it creates a local-user session when OIDC is off. Follow the activation request to see why it uses the original headers without the newly issued session cookie. Done means a non-OIDC user can save and activate a storage connection in one submission without reloading.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

When a user in a non OIDC environment sets up a storage connection he gets the following error message:
The connection was saved but could not be activated. Reload the page and select it from the saved connections.

With OIDC off, if a browser submitted the connect form without a valid session cookie, the server created a new local-user session during that same request, but its cookie only went out with the response. The action then tried to activate the saved connection using the original request headers, which had no session cookie, so better-auth returned 401 and the user got "saved but could not be activated".

Vorherrschende Sprache
TypeScript
Sterne
1
Forks
1
Ø Merge
2 T. 16 Std.
Gemergte PRs (30 T.)
39

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stackabletech/cockpit

Alle Issues in stackabletech/cockpit

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.