blinksmith / winezeug

Automatically exported from code.google.com/p/winezeug
0 stars 0 forks source link

Don't use cache directory to store wisotool login data #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steam currently stores auth in files:
.wisotool/cache/STEAM_USER
.wisotool/cache/STEAM_PASS
and gives the option to use them as environment variables.

GOG.com stores them in:
.wisotool/cache/gog_auth/login.txt
.wisotool/cache/gog_auth/password.txt
and does not give the option to use them as environment variables.

I propose we store auth data in .wisotool/auth.conf. The file needs to be 
editable by hand, so it would simply be setting environment variables:

$ cat auth.conf
STEAM_USER=user@example.com
STEAM_PASS=hunter2
GOG_USER=user@example.com
GOG_PASS=hunter2

Questions:
 - Do we set default values or leave them empty?
 - Do we create this file if it doesn't exist, or expect the user to create it?

Original issue reported on code.google.com by adys...@gmail.com on 13 Sep 2010 at 2:27

GoogleCodeExporter commented 8 years ago
I like the idea.   Just leave all the code as it is and source that
file if it exists.  Or for bonus points, make a helper function that
takes a service name and sets the variables, if that will make wisotool
shorter and easier to read.

Original comment by daniel.r...@gmail.com on 25 Sep 2010 at 7:44