nodeSolidServer / nodeSolidServer/node-solid-server
Issue a token with Python client
未關閉
還沒有人認領這個 Issue。
question
- 主要語言
- JavaScript
- 星號
- 1.8k
- 分支
- 308
- PR 合併指標
- 30 天內沒有已合併 PR
描述
The issue we like raise is the following.
We like to issue a token with a Python client to SOLID. We managed to get access using a cookie, however, we like to issue a token to get access to our SOLID account.
This issue mentioned two types of authentication, other than cooking: tokens and certificates.
https://github.com/solid/node-solid-server/issues/672
How can we issue a token in Python?
Our code so far:
import requests
import re
login_params = {
'username': '<user>',
'password': '<pass>'
}
r = requests.post('https://<user>.solid.community/login/password',login_params)
str_res = r.text
r.cookies
r = requests.get('https://<user>.solid.community/inbox/simplepad/index.ttl', cookies=r.cookies)
str_res = r.text
str_res
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先閱讀所引用的 node-solid-server issue 672,並檢視 Python 範例中顯示的登入/密碼 endpoint。釐清 Python 用戶端支援的權杖或憑證流程,完成條件是一個可重現、經過驗證且不依賴 Cookie 的請求。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- node.js, python
- 領域
- api, authentication
- Issue 類型
- 文件
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 20/100