Page 1 of 1

Authentication Token on Headless Server

Posted: Sun Jul 10, 2016 11:27 pm
by ntm
I don't want to store a password in plaintext in server-settings.json, and saw this config option

Code: Select all

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",
Looks great, but how do I use it? Is it the same as the token used in this request when I start the server? Is there a convenient way to get it?

Code: Select all

Downloading https://www.factorio.com/updater/get-available-versions?username=<user>&token=<private>&apiVersion=2

Re: Authentication Token on Headless Server

Posted: Mon Jul 11, 2016 4:52 am
by Last2Night
You might want to remove that line from your config file as its broken right now. If you have the token string, server ignores all the settings that config file has.
Last2Night wrote:Problem found. Its the config file that is being distributed with the game.
"_comment_token": "Authentication token. May be used instead of 'password' above."
"token": "",

in the config gives an error, I didnt take a copy of it but its somthing along the lines of unexpected character on line 17, expected "," or "}"
Removing comment_token lines fixes everything.