Spec vs 2026.2: the OAuth2 client's server field is ServerDefinition, and token revoke is under /server/

Đang mở Phù hợp với người mới
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
api, documentation

Hướng nghiên cứu

Bắt đầu với mainspec_v2.json và xác định schema OAuth2Client cùng thao tác revoke OAuth2. So sánh tên các trường, các member được trả về và các path của chúng với các yêu cầu và phản hồi curl trong issue. Cập nhật đặc tả để khớp với instance 2026.2, sau đó xác minh các yêu cầu và phản hồi được ghi lại với các endpoint được cung cấp.

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

Mô tả

Environment: intersystems/irishealth-community:2026.2 (Build 221U), fresh container, as _SYSTEM,
against mainspec_v2.json on master.

1. OAuth2Client names the server field OAuth2ServerDefinition; the instance accepts only ServerDefinition

Create an OAuth2.ServerDefinition first (issuer, authorization and token endpoints); here its id is 1.

B=http://localhost:52773/api/admin/v2/security/oauth2/client/client-configuration
# field name from the spec -> 400
curl -u _SYSTEM:SYS -X PUT -H 'Content-Type: application/json' "$B?applicationName=SpecName" \
  -d '{"OAuth2ServerDefinition":"1","ClientType":"confidential","SSLConfiguration":"ISC.FeatureTracker.SSL.Config","RedirectionEndpoint":"https://localhost/callback"}'
# ERROR #40307: Field 'OAuth2ServerDefinition' was not expected in the request body.

# field name the instance uses -> 201
curl -u _SYSTEM:SYS -X PUT -H 'Content-Type: application/json' "$B?applicationName=InstanceName" \
  -d '{"ServerDefinition":"1","ClientType":"confidential","SSLConfiguration":"ISC.FeatureTracker.SSL.Config","RedirectionEndpoint":"https://localhost/callback"}'

The 201 response and a later GET both return ServerDefinition. They also return ClientId and JWTInterval,
which the OAuth2Client schema doesn't list.

2. Token revoke: the spec's path returns 404; the instance serves it under /server/

curl -u _SYSTEM:SYS -X POST "http://localhost:52773/api/admin/v2/security/oauth2/revoke?user=_SYSTEM"         # 404 (spec path)
curl -u _SYSTEM:SYS -X POST "http://localhost:52773/api/admin/v2/security/oauth2/server/revoke?user=_SYSTEM"  # 200

Expected: the spec and the 2026.2 instance agree: the field name, the schema's members, and the revoke path.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 intersystems-community/sysadmin-api-specification

Tất cả issue của intersystems-community/sysadmin-api-specification

Issue tương tự

Thêm issue về Backend & API Design

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.