stackedit-docker
stackedit-docker copied to clipboard
Google API key got converted to lower case
Hi,
I am trying to use the google sign in, but have some problems with my API key. I added one to the docker-compose, but for some reason the GET method uses lower case version of my API key. Therefore I get a 400 INVALID_ARGUMENT.
Is this issue known?
Can I fix this somehow?
Hi, I'm facing the same issue now, it gets lowercased with and without "
marks. Have you figured out a workaround @Ondolin?
I've looked quite some time for another way to do this. But I don't think there is a workaround without looking into the code. And that has been to much effort for me.
Hey @Ondolin, thanks for your quick reply. I was trying something and I think I managed a workaround:
- In the Google API console, create an API key (I was wrongly using the Client secret), enable People API and Drive API (and optionally, restrict access to IP/URL origins)
- In the docker-compose.yml, enter the URL-encoded API key (e.g.
a
becomes%61
). It's working because Stackedit uses it in a Request URL: https://people.googleapis.com/v1/people/me?personFields=names,photos&key=%47%4f%43...and
%6Fbeing lowercased into
%6f` still get URL-decoded the same way.
I managed to sync a workspace and sync a file 2-ways between GDrive and Stackedit. Let me know if that works for you!