Logging in without snapd

I’m building a thing which needs to login to the snap store. It runs on platforms where snapd is not available. I am trying to use the /v2/login and /v2/logout endpoints, but am getting 408 errors from api.snapcraft.io. Can someone help?

I’m specifying email, password, otp, user-agent, x-ubuntu-series, all the usual suspects. But I get a HTTP 408 and ‘Your browser didn’t send a complete request in time.’

I’ve even tested from postman - to see if my code is broken - and it fails similarly from there too.

Is there something I’m missing, or some reason I cannot auth to the store from something other than snapd?

1 Like