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

HTTP Security added ! #3

Merged
merged 1 commit into from
Jun 13, 2023
Merged

HTTP Security added ! #3

merged 1 commit into from
Jun 13, 2023

Conversation

hermesdj
Copy link
Owner

The API was not secured. Now, the config directory of BepInEx will have a VRisingServerApiPlugin.cfg config file with an access list consisting of comma separated values of username:password using Basic authentication.

In order to authenticate, your http request must have an authorization header with Basic {base64(username:password)} in order to get access to protected routes.

Protected routes are now defined using a boolean when declaring an http handler on a class or on a method.

Also added more info to the player details route

The API was not secured. Now, the config directory of BepInEx will have a VRisingServerApiPlugin.cfg config file with an access list consisting of comma separated values of username:password using Basic authentication.

In order to authenticate, your http request must have an authorization header with Basic {base64(username:password)} in order to get access to protected routes.

Protected routes are now defined using a boolean when declaring an http handler on a class or on a method.

Also added more info to the player details route
@hermesdj hermesdj merged commit 339bada into master Jun 13, 2023
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