AbandonTech / AbandonTech/abandonauth

Enforce schema in Callback URIs and use full URI in abandon auth UI

Đang mở
#62 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
backend enhancement good first issue help wanted
Ngôn ngữ chính
Python
Star
4
Fork
2
Merge trung bình
59 phút
Pull request đã merge (30 ngày)
1

Mô tả

## Summary

Callback URIs can be set to any arbitrary value, including relative paths or just nonsense. Currently the AbandonAuth UI for developer dashboards uses a [relative path](https://github.com/AbandonTech/abandonauth/blob/main/abandonauth/routers/ui.py#L40) for the callback URI. This should be changed to use the full URL in the specific environment. I.e in production we should be using `auth.abandontech.cloud/ui`, in dev it should use `localhost:{port}/ui` where port is the actual port the application is being locally deployed with.

## Acceptance Criteria

Callback URIs have validation either in the database, Pydantic models, or both that forces them to be in the form of a valid URI, therefore disallowing relative paths or random strings.
The AbandonAuth UI must also use the new, correct format for its own redirect to the AbandonAuth login page.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.