Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for authenticated sessions in configuration #39

Open
kaerumy opened this issue Sep 26, 2020 · 2 comments
Open

Option for authenticated sessions in configuration #39

kaerumy opened this issue Sep 26, 2020 · 2 comments
Assignees

Comments

@kaerumy
Copy link
Member

kaerumy commented Sep 26, 2020

https://plonerestapi.readthedocs.io/en/latest/authentication.html

import requests

session = requests.Session()
session.auth = ('username', 'password')
session.headers.update({'Accept': 'application/json'})
@Jeffrey04
Copy link
Collaborator

got it, will work on it within the week

@Jeffrey04 Jeffrey04 self-assigned this Sep 30, 2020
kaerumy added a commit that referenced this issue Feb 6, 2021
@Jeffrey04
Copy link
Collaborator

merged but i realized i forgot to update the doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants