Infura has added support for an optional project secret to their API.
From https://infura.io/docs/gettingStarted/authentication
"As additional protection for your request traffic, you should use HTTP Basic Authentication to access our API when you are able to ensure the confidentiality of the Project Secret:"
curl --user :YOUR-PROJECT-SECRET \
https://<network>.infura.io/v3/YOUR-PROJECT-ID
It'd be good if the InfuraProvider construction could take an optional project secret argument that is used to do the HTTP Basic Authentication.
Thanks
Nick
Good catch, I had not noticed that you could use that for authentication.
I'll add it soon. :)
I've added a PR to add this functionality. Please take a look and let me know what you think.
This was added a while ago to v5. I'm going to close this issue now, but if you have any problems, please re-open, or create a new issues.
Thanks! :)
Most helpful comment
Good catch, I had not noticed that you could use that for authentication.
I'll add it soon. :)