More OpenID Conformance test fixes - work with POST, correct auth code character set, correct no-store cache headers

This commit is contained in:
Dan Milne
2026-01-03 12:28:43 +11:00
parent 16e34ffaf0
commit f4a697ae9b
3 changed files with 39 additions and 9 deletions

View File

@@ -87,7 +87,10 @@ class SessionsController < ApplicationController
# Sign in successful (password only)
start_new_session_for user, acr: "1"
redirect_to after_authentication_url, notice: "Signed in successfully.", allow_other_host: true
# Use status: :see_other to ensure browser makes a GET request
# This prevents Turbo from converting it to a TURBO_STREAM request
redirect_to after_authentication_url, notice: "Signed in successfully.", allow_other_host: true, status: :see_other
end
def verify_totp