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

Remove token feature #35

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Remove token feature #35

merged 1 commit into from
Jun 5, 2024

Conversation

callumforrester
Copy link
Contributor

Fixes #25

Remove token feature and allow the browser to do basic auth.

Without the token, the browser will prompt for credentials when an API call is made and embed them automatically: https://stackoverflow.com/questions/23004942/how-can-i-get-browser-authentication-popup

This will only last as long as the browser is open, the user will have to be prompted again after a restart. It's not perfect but it is sufficient for MVP.

Longer-term we will need to use cookies and graylog's session endpoint: https://go2docs.graylog.org/5-0/setting_up_graylog/rest_api.html

Remove token feature and allow the browser to do basic auth
Copy link
Collaborator

@TBThomas56 TBThomas56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not realise that this would have worked without the authorization! That is amazing for an MVP for sure :))

@callumforrester callumforrester merged commit 654068b into main Jun 5, 2024
5 checks passed
@callumforrester callumforrester deleted the basic-auth branch June 5, 2024 06:54
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.

Authentication (Production)
2 participants