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

Pass login token in API requests #270

Open
chrisliebaer opened this issue Mar 20, 2021 · 2 comments
Open

Pass login token in API requests #270

chrisliebaer opened this issue Mar 20, 2021 · 2 comments
Labels

Comments

@chrisliebaer
Copy link

This might be an extremely embarrassing question if I'm wrong but I was unable to find a way to pass a login token along API requests. I would have expected there to be a header field that I can use but the documentation doesn't seem to mention anything. I don't have a lot of experience with Python but looking at the code, it seems like the login status is entirely cookie based?

If that's the case then I would like to propose a header field that can be used by API requests to include the login token without having to store cookies.

@ThomasWaldmann
Copy link
Contributor

IIRC, the bepasty-server code currently assumes that a cookie-based session is established.

For a interactive, browser-based session, this is fine.

For automated stuff, you could have a look at how the cli interface deals with this: https://github.com/bepasty/bepasty-client-cli

@ThomasWaldmann
Copy link
Contributor

docs about how to use http basic auth: https://github.com/bepasty/bepasty-server/pull/273/files

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

No branches or pull requests

2 participants