Redirect problem after login to refresh privileged session
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- docker-compose
調査の方向性
この issue にはファイルもテストも記載されていないため、まず、ドキュメントに記載された return_to URL と GetSelfServiceSettingsFlow 呼び出しを使用して、カスタム設定ページから特権セッションのフローを再現します。ログインのリダイレクトを追跡し、設定に戻ることで GET メソッドエラーが発生せず、ユーザーが操作を繰り返す必要もなく、特権操作が完了することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
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
- Configure your Ory Session privileged timeout to a small interval (e.g. 30s)
- Go your custom kratos ui settings page
- Execute a privileged action (e.g. reveal backup recovery codes)
- Wait for redirect to login
- Enter the correct credentials
- Wait fo redirect back to settings
- 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
- 主要言語
- Shell
- スター
- 96
- フォーク
- 8
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ory/network のほかの issue
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
Updating native registration flow with OIDC ID token for existing identity returns breaking responseオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
feat
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
feat
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
backlog bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
WLAN-Pi/wlanpi-profiler#306 ·
メンテナーはふだん 1 日以内に返信
-
area: backend good first issue priority: P3 - low size: S type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Mizithra/ActiveTerrain#31 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
obra/superpowers#2422 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ComplianceAsCode/content#15152 ·
メンテナーはふだん 2 日以内に返信