Login stopped working
rafal-watorski opened this issue · 11 comments
BGG changed the login POST a little bit, so it stopped working in the app. It seems that only a small change is needed in the NetworkAuthenticator.java in buildRequest
function.
- url changed from
"https://www.boardgamegeek.com/login"
to"https://boardgamegeek.com/login/api/v1"
- contentType changed from
application/x-www-form-urlencoded
toapplication/json
- payload is not longer a FormBody, but a JSON with following structure:
{
"credentials": {
"username": "XXXXXXXX",
"password": "YYYYYYYY"
}
}
Any chance of getting a new release with this fix included? I have a new device and can't log in with this app because of this.
Good point, we could get a new release (a RC, I guess), but we would need help from @ccomeaux because I never did it before in this repository, so I'm not sure if this should happen from develop branch and how to name it.
I have they key to make sure the APK matches the previous one to allow for an upgrade instead of a new application install. That said, I've got an RC set to go, I just need to give it a test. Sorry it's taken so long, but over the last year, lots of small things no longer worked.
I will release something from the develop branch soon, but there have been so many changes that I didn't feel comfortable try to hot fix for the login.
You can also release a beta if you would like some of us to test the changes ;)
Just created a release if you wanted to give it a spin.
https://github.com/ccomeaux/boardgamegeek4android/releases/tag/6.8.1
Thanks, that's got my new phone logged in!
Also works on my device!
Works on Xperia XZ1C Android 9, too! ♥ Thanks