Skip to content

Conversation

@hcbraun
Copy link
Contributor

@hcbraun hcbraun commented Aug 21, 2017

Use the .cookie file from the bitcoin config folder if there is no rpcpassword specified in the bitcoin.conf file. Also removes username/password from service url. Credentials are already in the authorization field. Sending them via both methods should not be necessary

https://en.wikipedia.org/wiki/Basic_access_authentication

@petertodd petertodd merged commit 4f5bca8 into petertodd:master Aug 23, 2017
petertodd added a commit that referenced this pull request Aug 23, 2017
4f5bca8 Add support for cookie file authentication (Hielke Christian Braun)

Pull request description:

  Use the .cookie file from the bitcoin config folder if there is no rpcpassword specified in the bitcoin.conf file. Also removes username/password from service url. Credentials are already in the authorization field. Sending them via both methods should not be necessary

  https://en.wikipedia.org/wiki/Basic_access_authentication

Tree-SHA512: cdf74f62b9918a6c8da237e6a95ceb1a6e8ab3b05e392f7f67c34f6c574a5dff5acf20a20f1564cb7746432460e7fcdc64cd3586adba6a291479872ad38071de
@petertodd
Copy link
Owner

Thanks!

I also added support for regtest/testnet cookies in 5f77336

rawBit-io pushed a commit to rawBit-io/python-bitcointx that referenced this pull request Nov 6, 2025
b7c41e9 Add support for cookie file authentication (Hielke Christian Braun)

Pull request description:

  Use the .cookie file from the bitcoin config folder if there is no rpcpassword specified in the bitcoin.conf file. Also removes username/password from service url. Credentials are already in the authorization field. Sending them via both methods should not be necessary

  https://en.wikipedia.org/wiki/Basic_access_authentication

Tree-SHA512: cdf74f62b9918a6c8da237e6a95ceb1a6e8ab3b05e392f7f67c34f6c574a5dff5acf20a20f1564cb7746432460e7fcdc64cd3586adba6a291479872ad38071de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants