Skip to content

Issue a token with Python client #1024

Open
@paulstapersma

Description

@paulstapersma

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.
#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions