ECO Server Strange Loop Games Token authentication #286
ECO Server Strange Loop Games Token authentication #286ArthurErlich wants to merge 9 commits intopterodactyl:mainfrom
Conversation
|
I agree that we need to at least add token authentication, but don't they still support username/password authentication? This worked fine when I was testing last week. |
|
Thanks for the replay, Tested it with: @danny6167 Can you check if the login with username+password works? I will re add the login and make both option available if username and password still work. |
|
Yep I'll double check it tonight. It would be great to move people to token only, but I also don't want to break existing installs if they are working. |
|
Can confirm - SLG username and password based authentication do still work |
|
I changed the startup script. It will now switch between username/password or the token, depending on what is filled. It looks like the Laravel code That is why I added a description text and warned the user that they should use either the token or the username and password. |
Updated the exported_at date and modified startup command to include user authentication options. Enhanced account settings with descriptions for SLG Token, Username, and Password.
|
The way you've don't this startup is overly complicated. And yes, unfortunately due to the way the validation rules are applied you can't use |
|
Thanks for the Reply and i wish for a good new year. Yes, I know that my solution is a bit complicated. My Idea was to stop the user to fill both Password and Token field and getting an error. But if you wish, I can also just change to your snipped and just echoing the start parameter when the field is filled in the config
|
|
Happy new year. |
|
Hello @danny6167. I finally found some time to modify and test the changes. The startup script looks like this for now: ./EcoServer \
$([ -n "$SERVER_PASSWORD" ] && echo "-serverpassword=\"${SERVER_PASSWORD}\"") \
$([ -n "$SLG_TOKEN" ] && echo "-userToken=\"${SLG_TOKEN}\"") \
$([ -n "$SLG_USER" ] && echo "-username=\"${SLG_USER}\"") \
$([ -n "$OFFLINE_MODE" ] && echo "-offline") \Simply print the flag it is set. I am also not able to reliably test the configs because of some errors in the Network.template file: Failed to start the server. Exception was Exception: JsonReaderException
Message:Error reading JObject from JsonReader. Path '', line 0, position 0.
Source:Newtonsoft.Json
Newtonsoft.Json.JsonReaderException: Error reading JObject from JsonReader. Path '', line 0, position 0.
at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
at Newtonsoft.Json.Linq.JObject.Parse(String json)
at Eco.Core.Plugins.PluginConfig`1.LoadAsync(String filename)
Outer Exceptions:
One or more errors occurred. (Error reading JObject from JsonReader. Path '', line 0, position 0.)[ |
Description
Strange Loops Games removed the user and pass authentication and replaced it with a token based authentication.
Checklist for all submissions