It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Try sending POST request to https://login.gog.com/login_check

with 3 fields:
login[_token] = token_value
login[username] = your@email.com
login[password] = your_pass

You can get token_value by fetching https://login.gog.com/login
Examples in Perl:
http://www.codealias.info/technotes/perl_http_post
http://xmodulo.com/how-to-send-http-get-or-post-request-in-perl.html
avatar
Pyron: Try sending POST request to https://login.gog.com/login_check

with 3 fields:
login[_token] = token_value
login[username] = your@email.com
login[password] = your_pass

You can get token_value by fetching https://login.gog.com/login
Thank you. Just to be certain I tried and it did not work.

The reason is that in order to perform the login, the client needs to create a secure OAuth session with the server.

My problem is how to apply the GOG login API to the rather incomprehensible (to me) OAuth implementation in Perl (http://search.cpan.org/dist/Net-OAuth/lib/Net/OAuth.pm and [url=http://search.cpan.org/~simonw/Net-OAuth-Simple-1.5/lib/Net/OAuth/Simple.pm]http://search.cpan.org/~simonw/Net-OAuth-Simple-1.5/lib/Net/OAuth/Simple.pm[/url]).

Thanks again.
high rated
avatar
Pyron: Try sending POST request to https://login.gog.com/login_check

with 3 fields:
login[_token] = token_value
login[username] = your@email.com
login[password] = your_pass

You can get token_value by fetching https://login.gog.com/login
avatar
mrkgnao: Thank you. Just to be certain I tried and it did not work.
POSTing the values to https://login.gog.com/login_check is not enough. You still need to follow redirect url that you get as response to the POST.

https://login.gog.com/login doesn't give a proper token, or at least it didn't give one when I was implementing the login for LGOGDownloader.
I use [url=https://auth.gog.com/auth?client_id=ID_NUMBER_HERE&redirect_uri=https%3A%2F%2Fwww.gog.com%2Fon_login_success&response_ type=code&layout=default]https://auth.gog.com/auth?client_id=ID_NUMBER_HERE&redirect_uri=https%3A%2F%2Fwww.gog.com%2Fon_login_success&response_ type=code&layout=default[/url] to get the token for lgogdownloader
I think you can use a random number as the id number. For lgogdownloader I just find the auth url from GOG front page and follow it.
avatar
mrkgnao: Thank you. Just to be certain I tried and it did not work.
avatar
Sude: POSTing the values to https://login.gog.com/login_check is not enough. You still need to follow redirect url that you get as response to the POST.

https://login.gog.com/login doesn't give a proper token, or at least it didn't give one when I was implementing the login for LGOGDownloader.
I use https://auth.gog.com/auth?client_id=<span class="bold">ID_NUMBER_HERE</span>&amp;redirect_uri=https%3A%2F%2Fwww.gog.com%2Fon_logi n_success&amp;response_type=code&amp;layout=default to get the token for lgogdownloader
I think you can use a random number as the id number. For lgogdownloader I just find the auth url from GOG front page and follow it.
avatar
Pyron:
Thank you, Sude! And thank you, Pyron, for the initial suggestion.

With your additional information, I succeeded in logging in.
Apparently, I had got it all wrong. I was under the impression that OAuth was needed for logging in, while I now understand that it is needed only for accessing the API (which I don't need).

I managed to log in, get my library listing, get game info for one game, and get file properties for one installer and a few bonuses, so now I just need to automate the whole process and we will have an ongoing record of all changes to all downloadable files (for the games I own).

Expect MaGog 4.0.0 sometime in January/February.
Post edited December 21, 2014 by mrkgnao
avatar
mrkgnao: I managed to log in, get my library listing, get game info for one game, and get file properties for one installer and a few bonuses, so now I just need to automate the whole process and we will have an ongoing record of all changes to all downloadable files (for the games I own).
So now we just need to gift you all the games you do not own :D
avatar
mrkgnao: I managed to log in, get my library listing, get game info for one game, and get file properties for one installer and a few bonuses, so now I just need to automate the whole process and we will have an ongoing record of all changes to all downloadable files (for the games I own).
avatar
moonshineshadow: So now we just need to gift you all the games you do not own :D
Obviously.
Post edited December 21, 2014 by mrkgnao
avatar
moonshineshadow: So now we just need to gift you all the games you do not own :D
I can't help but think that this was his goal all along.
avatar
moonshineshadow: So now we just need to gift you all the games you do not own :D
avatar
HypersomniacLive: I can't help but think that this was his goal all along.
Kudos for not appending a smiley.
I'm happy that you were able to get help.

I really got to learn how to automate my web activities, I just need to find the motivation as I can code or maybe I should say could code, OO programming just seems unnecessary complex to me to do simple things. I have a book to learn C++ in my library but it's been sitting there for years and I think the latest changes to the language made it obsolete. I miss C and assembler.
avatar
justanoldgamer: I'm happy that you were able to get help.

I really got to learn how to automate my web activities, I just need to find the motivation as I can code or maybe I should say could code, OO programming just seems unnecessary complex to me to do simple things. I have a book to learn C++ in my library but it's been sitting there for years and I think the latest changes to the language made it obsolete. I miss C and assembler.
Completely agree about OO. Never could stomach it.
Luckily, my day job has me programming in C (and a bit of assembly).
You should look into Perl.
avatar
mrkgnao: Kudos for not appending a smiley.
How could I?
So does this mean that once you get everything working and gifted all the games, you'll be free to make the search engine for [url=http://('s posts in Gog community)]people[/url]?
I'm still shocked that a professional software company doesn't know how to generate a changelog for something they're working on in this day and age. it's 2014, not 1996.
avatar
BlackThorny: So does this mean that once you get everything working and gifted all the games, you'll be free to make the search engine for [url=http://('s posts in Gog community)]people[/url]?
Your link is broken.

Did you mean "people's posts in Gog community", i.e. a search engine for the forum?