Fix session specs to use POST for OmniAuth request phase #135
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/session-specs-post-method"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
OmniAuth.config.allowed_request_methods)post "/auth/keycloak"instead ofget "/auth/keycloak"to match production behavior (button_toPOST)Changes
spec/requests/sessions_spec.rb— Changedget "/auth/keycloak"topost "/auth/keycloak"in 3 placesspec/support/omniauth.rb— Removed staleOmniAuth.config.silence_get_warning = trueTest Plan
Review Checklist
Related Notes
Follow-up fix for PR #134. No standalone issue — this is a regression from the CSRF hardening fix.
Closes #115
QA Review
Verdict: APPROVED
Mechanical fix — 3
get "/auth/keycloak"changed topost, matching the POST-onlyallowed_request_methodsset in the initializer. Removed stalesilence_get_warningthat no longer applies. All 101 specs pass. No issues.