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

fix: [#41] add authentication bearer token to all requests #42

Merged

Conversation

josecelano
Copy link
Member

Relates to: torrust/torrust-index-gui#412

Add authentication bearer token to all requests.

The Index does not have any session data on the backend. If the client does not provide the Authentication Bearer Token the request is processed as a anonymous request. Some endpoints like the one to download the torrent file return different data depending on wether the user is logged in or not. So we have to include always the token is it's available.

@josecelano
Copy link
Member Author

ACK 5536b1e

@josecelano josecelano merged commit 6b16a87 into torrust:main Dec 21, 2023
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant