Authentication Token on Headless Server

Arrange meetings with other people to play MP, announce your servers.
ntm
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jul 06, 2016 12:48 pm
Contact:

Authentication Token on Headless Server

Post 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
Last2Night
Inserter
Inserter
Posts: 37
Joined: Mon Jul 04, 2016 8:49 am
Contact:

Re: Authentication Token on Headless Server

Post 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.
Post Reply

Return to “Multiplayer”