Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Redirect problem after login to refresh privileged session

Aperta
#191 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
docker-compose

Direzione di ricerca

L’issue non indica file né test; inizia riproducendo il flusso della sessione privilegiata dalla pagina delle impostazioni personalizzate, utilizzando l’URL return_to documentata e la chiamata GetSelfServiceSettingsFlow. Segui il reindirizzamento del login e verifica che il ritorno alle impostazioni completi l’azione privilegiata senza l’errore del metodo GET e senza richiedere all’utente di ripeterla.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Preflight checklist
Describe the bug

When the user needs to login to refresh a privileged session (e.g. from the settings page), it is redirected from the current page to the login page with the following return_to url:

http://ory.domain.com/self-service/settings?flow=FLOW_ID

After a successful login, the login page should redirect the user to the address at return_to (above).

Redirecting the user there ends up in the settings page. Calling GetSelfServiceSettingsFlow at that stage provides a flow with the error below and the user needs to repeat the last action:

Unable to decode body because HTTP Request Method was "GET" but only [POST PUT PATCH] are supported.

We assume this is a bug and that at this stage we should have a settings flow updated after completing the operation the user tried to perform. We also tried to compare the settings flow from the first call and after the login, but they are pretty much the same, so no clue on what should be done differently.

Please advise.

Reproducing the bug
  1. Configure your Ory Session privileged timeout to a small interval (e.g. 30s)
  2. Go your custom kratos ui settings page
  3. Execute a privileged action (e.g. reveal backup recovery codes)
  4. Wait for redirect to login
  5. Enter the correct credentials
  6. Wait fo redirect back to settings
  7. The error message is shown and the privileged action is not executed
Relevant log output

No response

Relevant configuration

No response

Version

0.0.1-alpha.169

On which operating system are you observing this issue?

Windows

In which environment are you deploying?

Docker Compose

Additional Context

No response

Lingua principale
Shell
Stelle
96
Fork
8
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ory/network

Tutte le issue di ory/network

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.