aboutcode-org / aboutcode-org/purldb

Update how API key are created and issued

Đang mở
#270 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
HTML
Star
67
Fork
69
Merge trung bình
8 ngày 8 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Currently, we have the `ApiUser` model from `packagedb` (https://github.com/nexB/purldb/blob/main/packagedb/models.py#L1290) where we use the `create_api_user` management command (https://github.com/nexB/purldb/blob/main/packagedb/management/commands/create_api_user.py) to create user accounts. This is different than how we create users for scancode.io, where the `create-user` command uses the user model from `django.contrib.auth` (https://github.com/nexB/scancode.io/blob/main/scanpipe/management/commands/create-user.py).

We should create users in the same way in purldb.

In the situation where we have a companion matchcode instance that accesses the purldb database, we can route the `auth` and `auth_user` django apps to the purldb and have matchcode instance have the same users as the purldb instance.

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.