nodeSolidServer / nodeSolidServer/node-solid-server
Issue a token with Python client
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced node-solid-server issue 672 and reviewing the login/password endpoint shown in the Python example. Clarify the supported token or certificate flow for a Python client, with completion defined as a reproducible authenticated request that does not rely on cookies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, python
- Domain
- api, authentication
- Issue type
- Documentation
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100