LBRY-Vault/electrum
Daniel Kraft 423c4b0695
Return 401 from RPC server for missing auth.
When no (supported) authentication is passed to the JSON-RPC server,
return a 401 HTTP error code instead of 403.  This indicates to the
client that authentication is required, and also requests that to be
sent using the "basic" method.  The previously-returned code 403 is now
only returned if authentication is passed but not valid.

There are some JSON-RPC clients out there that only send authentication
after a 401 code requested it.  Those fail to connect to the Electrum
RPC interface even if the correct password is configured.  Those same
clients can e.g. connect to Bitcoin Core successfully, which already
implements logic matching this change.

See also https://stackoverflow.com/questions/3297048/403-forbidden-vs-401-unauthorized-http-responses.
2019-11-21 15:16:37 +01:00
..
gui qt: consistently show tooltip when copying to clipboard 2019-11-21 03:01:55 +01:00
plugins hardware wallets: handle when label is None 2019-11-18 18:13:26 +01:00
scripts integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
tests old_mnemonic: speed up mn_decode 2019-11-15 12:08:06 +01:00
wordlist file reorganization with top-level module 2018-07-13 14:01:37 +02:00
www@7d902a422a fix websocket messages 2019-09-05 11:45:28 +02:00
__init__.py config: enforce that SimpleConfig is singleton 2019-09-10 18:01:10 +02:00
address_synchronizer.py wallet: "future" txns num conf is now negative 2019-11-21 05:01:59 +01:00
base_crash_reporter.py added trigger_crash method for testing crash reporter 2019-07-04 18:06:21 +02:00
base_wizard.py psbt: put fake xpubs into globals. keystores handle xfp/der_prefix missing 2019-11-04 22:24:59 +01:00
bip32.py psbt: follow-ups: fix digital bitbox 2019-11-05 22:06:46 +01:00
bitcoin.py psbt: implement CompactSize key types (previously single-byte types) 2019-11-07 03:27:38 +01:00
blockchain.py logging: basics 2019-05-02 15:19:03 +02:00
channel_db.py delete channel from db in remove_channel, becaose it is called from lnworker 2019-10-23 08:20:15 +02:00
checkpoints.json update block header checkpoints 2019-08-09 18:59:21 +02:00
checkpoints_testnet.json update block header checkpoints 2019-08-09 18:59:21 +02:00
coinchooser.py CoinChooser: avoid NotEnoughFunds if zero buckets are sufficient 2019-11-11 15:15:04 +01:00
commands.py Merge pull request #5775 from JeremyRand/resolver-wallet 2019-11-18 02:11:06 +00:00
constants.py move lnworker.first_block to constants 2019-08-20 09:03:11 +02:00
contacts.py logging: basics 2019-05-02 15:19:03 +02:00
crypto.py update lnbase after crypto refactoring 2019-08-20 09:03:09 +02:00
currencies.json Removed dead exchange. 2019-07-21 13:13:51 +02:00
daemon.py Return 401 from RPC server for missing auth. 2019-11-21 15:16:37 +01:00
dnssec.py change many str(e) to repr(e) as some exceptions were cryptic 2019-07-17 20:12:52 +02:00
ecc.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
ecc_fast.py simplify prev 2019-09-17 19:27:28 +02:00
electrum file reorganization with top-level module 2018-07-13 14:01:37 +02:00
exchange_rate.py network: handle main_taskgroup dying better. passthrough CancelledError 2019-08-30 19:46:25 +02:00
i18n.py move get_default_language to gui.qt.util 2018-09-23 14:11:50 +05:00
interface.py wallet: fix offline hw wallet signing when not specifying --offline 2019-07-29 13:27:37 +02:00
json_db.py psbt: put fake xpubs into globals. keystores handle xfp/der_prefix missing 2019-11-04 22:24:59 +01:00
keystore.py hardware wallets: detect if label changed and update it in wallet file 2019-11-17 01:17:38 +01:00
lightning.json update lightning.json 2019-08-20 09:03:11 +02:00
lnaddr.py qt send tab: handle invalid ln invoice; and ln invoice with ln disabled 2019-10-01 19:15:26 +02:00
lnchannel.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
lnhtlc.py lnworker: rework "is_dangerous" 2019-08-20 09:03:12 +02:00
lnmsg.py fix encode_msg: optional fields were not sent 2019-08-20 09:03:12 +02:00
lnonion.py lnonion: get_failure_msg_from_onion_error might raise in python 3.7 2019-10-12 00:05:38 +02:00
lnpeer.py Pass make_tx function to ConfirmTxDialog 2019-11-14 10:20:19 +01:00
lnrouter.py lnrouter: fix off-by-one in NUM_MAX_EDGES_IN_PAYMENT_PATH 2019-09-06 18:36:21 +02:00
lnsweep.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
lntransport.py lnhtlc: local update raw messages must not be deleted before acked 2019-08-20 09:03:12 +02:00
lnutil.py ln: qt channel open: fix max channel size 2019-11-20 17:45:28 +01:00
lnverifier.py create class for ShortChannelID and use it 2019-09-06 18:09:05 +02:00
lnwatcher.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
lnworker.py ln: update list of fallback nodes 2019-11-20 17:14:14 +01:00
logging.py Travis CI: Use flake8 to find Python syntax errors and undefined names (#5467) 2019-08-11 22:35:23 +00:00
mnemonic.py fix qt seed dialog (follow-up af86c7e3fd) 2019-11-15 23:50:05 +01:00
msqr.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
network.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
old_mnemonic.py old_mnemonic: speed up mn_decode 2019-11-15 12:08:06 +01:00
paymentrequest.proto file reorganization with top-level module 2018-07-13 14:01:37 +02:00
paymentrequest.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
paymentrequest_pb2.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
pem.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plot.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
plugin.py hardware wallets: handle when label is None 2019-11-18 18:13:26 +01:00
qrscanner.py rename contrib/build-osx as contrib/osx. Move QRReader submodule there. 2018-11-29 11:39:57 +01:00
ripemd.py file reorganization with top-level module 2018-07-13 14:01:37 +02:00
rsakey.py no more "import *" 2019-02-11 20:21:24 +01:00
segwit_addr.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
servers.json Remove electrumx.ml because of phishing (#5596) 2019-08-29 12:37:33 +00:00
servers_regtest.json file reorganization with top-level module 2018-07-13 14:01:37 +02:00
servers_testnet.json servers: update testnet default list 2019-04-27 23:10:12 +02:00
simple_config.py config: no longer singleton. it is passed to Wallet.__init__ 2019-09-22 20:46:01 +02:00
sql_db.py tests: fix test_find_path_for_payment. need to close sqlite connection 2019-09-22 21:21:24 +02:00
storage.py storage: read/write sanity checks 2019-09-10 21:17:15 +02:00
synchronizer.py integrate PSBT support natively. WIP 2019-11-04 22:24:36 +01:00
transaction.py Pass make_tx function to ConfirmTxDialog 2019-11-14 10:20:19 +01:00
util.py wallet: "future" txns num conf is now negative 2019-11-21 05:01:59 +01:00
verifier.py post rebase fixes 2019-08-20 09:03:11 +02:00
version.py bump version number to 4.0.0a0 (alpha version) 2019-10-11 18:13:48 +02:00
wallet.py wallet: "future" txns num conf is now negative 2019-11-21 05:01:59 +01:00
x509.py logging: cli options to filter for modules using -v 2019-05-02 15:19:10 +02:00