dendrite/clientapi/auth
Tak Wai Wong 649aadb759
Login and Register tests for public key ethereum (#16)
* TestLoginPublicKeyNewSession

* use asserts

* setup, test, asserts

* TestLoginPublicKeyValidAuthTypeMissingSession

* invalid session id test

* create a helper newSession function

* TestLoginPublicKeyEthereumMissingUserId

* TestLoginPublicKeyEthereumAccountNotAvailable

* TestLoginPublicKeyEthereumInvalidUserId

* createEip4361TestMessage

* TestLoginPublicKeyEthereumMissingSignature

* TestLoginPublicKeyEthereum

* re-enable all publickey signin tests

* move common publickey test util to its own file

* register_public_key.go stub

* refactored common ethereum test helpers to its own folder

* refactor test helpers

* return error in test helpers

* fix regressions with ServerName

* TestRegistrationUnimplementedAlgo

* TestNewRegistration

* TestNewRegistrationSession

* verify new login session

* remove assert

* perform account creation

* TestRegisterEthereum

* Enable all tests

* move helper functions into test file

Co-authored-by: Tak Wai Wong <tak@hntlabs.com>
2022-07-14 14:41:44 -07:00
..
authtypes Takwaiw/fix concurrent registration bug (#12) 2022-07-01 10:13:06 -07:00
auth.go syncapi: define specific interfaces for internal HTTP communications (#2416) 2022-05-05 09:56:03 +01:00
login.go Takwaiw/dendrite publickey (#2) 2022-05-12 16:47:48 -07:00
login_publickey.go Login and Register tests for public key ethereum (#16) 2022-07-14 14:41:44 -07:00
login_publickey_ethereum.go Login and Register tests for public key ethereum (#16) 2022-07-14 14:41:44 -07:00
login_publickey_ethereum_test.go Login and Register tests for public key ethereum (#16) 2022-07-14 14:41:44 -07:00
login_publickey_test.go Login and Register tests for public key ethereum (#16) 2022-07-14 14:41:44 -07:00
login_test.go Implement EIP-4361 sign in with Ethereum (#5) 2022-06-09 10:03:04 -07:00
login_token.go Support for m.login.token (#2014) 2022-02-10 10:27:26 +00:00
password.go Takwaiw/dendrite publickey (#2) 2022-05-12 16:47:48 -07:00
user_interactive.go Login and Register tests for public key ethereum (#16) 2022-07-14 14:41:44 -07:00
user_interactive_test.go Implement EIP-4361 sign in with Ethereum (#5) 2022-06-09 10:03:04 -07:00