Replace SBS interrupt 302 redirects

Đang mở
#2,173 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Start by locating the SBS interrupt code that sends the 302 responses and the templates used for rendered responses; the issue does not name specific files or tests. Replace each affected redirect response with a rendered page using a meta refresh or JavaScript location replacement, then verify the SRAM interrupt flow works when the originating CSP blocks redirects. Remove the temporary eduID CSP expansion after deployment.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

For SRAM interrupt redirects, EngineBlock sends a HTTP Response 302 to the client, which implies redirecting the previous originator's request which might contain CSP headers forbidding a call to SRAM.

e.g.:

  • eduID redirects to EB and sets CSP header
  • EB needs to redirect to SRAM and sends 302 for SRAM interrupt location
  • Client browser refuses the redirect, based on the CSP from eduID

Proposed solution:
Replace all SBS 302 redirect responses with a rendered template that contains a meta refresh head or javascript window.location.replace(...)

We have temporarily solved this by expanding the CSP for eduID. This needs to be removed after this fix has been deployed.

Ngôn ngữ chính
PHP
Star
17
Fork
26
Merge trung bình
3 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của OpenConext/OpenConext-engineblock

Tất cả issue của OpenConext/OpenConext-engineblock

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.