nodeSolidServer / nodeSolidServer/node-solid-server
OAuth refresh grant returns 500 internal server error
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 1.8k
- Fork
- 308
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The openid configuration available at the .well-wknow iri for the NSS identity provider (e.g. https://solid.zwifi.eu/.well-known/openid-configuration) indicates support for the refresh_token grant. However, when issuing a refresh token request that should be valid (see below), the response is Internal Server Error.
curl --location --request POST 'https://solid.zwifi.eu/token' \
--header 'Authorization: Basic <client id:client secret>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=refresh_token' \
--data-urlencode 'refresh_token=<refresh token>'
Steps to reproduce:
- Get a client ID, secret and a refresh token. That may be done by inspecting the dynamic registration of a client when logging in with an app for instance.
- Use the credentials to fill in the request above (client ID and secret should be base64-encoded)
Expected result
A 200 response with a JSON object in the body containing a new, valid access token.
Observed result
An internal error
Should this issue be reported here in the NSS repo, or in https://github.com/solid/oidc-auth-manager ?
NB: This is kind of related to https://github.com/solid/node-solid-server/issues/641
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu từ endpoint /token và lần theo cách grant refresh_token được xử lý trong repository này, sử dụng yêu cầu curl được cung cấp đối với ví dụ cấu hình OpenID. So sánh hành vi với issue liên quan và repository oidc-auth-manager; hoàn thành nghĩa là một yêu cầu hợp lệ trả về HTTP 200 cùng một đối tượng JSON access token mới thay vì lỗi nội bộ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- api, authentication, backend
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 38/100