So, minor update, I guess? I found the source code for an iPad app that still uses the /api/v0/login endpoint. . .so I’m using that for now.
This is not ideal, because it means I either need to prompt users or store their password and, well, I obviously don’t want to do the latter.
I’m going to put a pin in it and see if I can’t use the JWT that comes from that response for playing games.
Thing is, I really want to provide this API connector as a nuget package for other folks who want to use C#/.NET for connecting to OGS, so I really need to circle back to this eventually.
EDIT:
Well, that doesn’t work. the JWT doesn’t seem to actually work as a bearer token.
No problem! One more thought- double check you’ve got your client registered at beta.online-go.com if you’re trying to talk to the beta server. Beta and Prod are separate
I wasn’t setting a content-type for the post request. I was assuming that that header would be set by the library I’m using, and it wasn’t.
I used url-encoded, but I’m pretty sure it’d work even if I went back to sending a JSON-based request; I’d just need to set the header. I’m considering putting in a bug report to the library, because this feels like the sort of thing that should be handled automatically (as it is in similar libraries in other ecosystems).