Storage: Non OIDC users have to reload storage

Đang mở
#461 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/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ệ
typescript
Lĩnh vực
authentication

Hướng nghiên cứu

Start by tracing the storage connection form action and how it creates a local-user session when OIDC is off. Follow the activation request to see why it uses the original headers without the newly issued session cookie. Done means a non-OIDC user can save and activate a storage connection in one submission without reloading.

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

Mô tả

When a user in a non OIDC environment sets up a storage connection he gets the following error message:
The connection was saved but could not be activated. Reload the page and select it from the saved connections.

With OIDC off, if a browser submitted the connect form without a valid session cookie, the server created a new local-user session during that same request, but its cookie only went out with the response. The action then tried to activate the saved connection using the original request headers, which had no session cookie, so better-auth returned 401 and the user got "saved but could not be activated".

Ngôn ngữ chính
TypeScript
Star
1
Fork
1
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
39

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 stackabletech/cockpit

Tất cả issue của stackabletech/cockpit

Issue tương tự

Thêm issue về TypeScript

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.