michielbdejong / mozcloud

Run your own Mozilla Cloud Services
1 stars 0 forks source link

Invalid request signature and bad mac errors #1

Open michielbdejong opened 9 years ago

michielbdejong commented 9 years ago

Since Firefox desktop doesn't allow http-based fxa servers, I had to add fxa-https-proxy, and update the public URL settings for fxa-auth-server and fxa-content-server.

But I think I'm doing something wrong with that configuration, because I'm now getting 'Invalid request signature' and 'bad mac' errors.

michielbdejong commented 9 years ago

Slightly more elaborate description:

I'm trying to run my own fxa server on localhost, but I see an 'Invalid request signature' error when I try to sign up at about:accounts?action=signup. On the console it say 'Bad mac'.

I can see it gets a sessionToken and a keyFetchToken from my https://localhost:9002/v1/account/create?keys=true, and it sends a Hawk token to https://localhost:9002/v1/recovery_email/status, but that gets rejected with a 401.

I got past https://github.com/mozilla/fxa-content-server/issues/1986 by proxying my https://127.0.0.1:3031 to http://127.0.0.1:3030, and https://127.0.0.1:9002 to http://127.0.0.1:9000, but now I'm stuck at this Hawk error, and don't really know how I can debug it.

WladyX commented 9 years ago

Hi, Any luck with this? I'd love to use this docker container. Thanks, Vlad

michielbdejong commented 9 years ago

Hi WladyX, I haven't had much time to continue this project.

One big obstacle right now is that Firefox Hello relies on Tokbox, which is a proprietary third-party service, so that component is currently not self-hostable.

But making self-hosting of Mozilla's cloud services possible is definitely on my bucket list.

I assume you are mainly interested in the Sync 1.5 part? Or in some other part (as well)?

WladyX commented 9 years ago

I'm interested in sync and accounts (sync full stack). Thank you very much for the fast reply and if you have updates please post them here, i'll be watching :)