prysm-pulse/beacon-chain/powchain
Shay Zluf d77c298ec6
Support authorised access to web 3 providers (#8075)
* jwt access token impl

* use secret or jwt

* rename

* separate method for splitting auth

* usage update

* Update beacon-chain/flags/base.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update beacon-chain/node/node.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* make things work

* removed unused code

* better, more flexible authorization

* move types and function to proper packages

* fix checking if endpoint is not set

* fix existing tests

* rename Endpoint field to Url

* Tests for HttpEndpoint

* better bearer auth

* tests for endpoint utils

* fix endpoint registration

* fix test build

* move endpoint parsing to powchain

* Revert "fix existing tests"

This reverts commit ceab192e6a78c106cf4e16a1bdf5399752a39890.

* fix field name in tests

* gzl

* add httputils dependency

* remove httputils dependency

* fix compilation issue in blockchain service test

* correct endpoint fallback function and tests

* gzl

* remove pointer from currHttpEndpoint

* allow whitespace in auth string

* endpoint equality

* correct one auth data Equals test case

* remove pointer receiver

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-15 11:02:02 +00:00
..
testing Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
types Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
block_cache_test.go Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
block_cache.go Better receiver names in beacon chain module (#8286) 2021-01-19 13:21:32 +00:00
block_reader_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
block_reader.go Refactor Method Signatures For Powchain (#8110) 2020-12-17 12:33:34 +00:00
BUILD.bazel Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
deposit_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
deposit.go Avoid Setting State to Nil In Process Deposit (#7681) 2020-11-02 17:12:05 +00:00
init_test.go Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
log_processing_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
log_processing.go Embed Config Pattern For Attestation, POW Chain, and RPC Services (#8635) 2021-03-21 16:58:41 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
powchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
provider_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
provider.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
service_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
service.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00