nodeSolidServer / nodeSolidServer/node-solid-server

Issue a token with Python client

Open
#1,024 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.