Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: control end need to login before access #12

Conversation

tonylu00
Copy link

This commit provide "The control end need to login before access" feature.

close sctg-development/sctgdesk-api-server#14

I made this because my service was used by a scammer. This caused my IP to be blocked by my ISP.

Usage: Use LOGGED_IN_ONLY=Y hbbs to start, or add LOGGED_IN_ONLY=Y to the environment.

If the client is logged in, the token in PunchHoleRequest is access_token, otherwise, it is empty. It only checks if the control side is logged in, not if the session is valid.
The API side might need some modifications to provide a way to verify access_token, but I can't think of a way to do this.

@aeltorio
Copy link

hi @tonylu00 ,
thank you for your contribution.
ronan

@aeltorio aeltorio merged commit 8f44bf7 into sctg-development:tcpserver-master-build Oct 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The control end need to login before access
2 participants