0c6a098af9
GODT-1166: Reduce the number of auth for live test
...
- Changed: Do not reauth controller clients.
- Changed: Verbosisty is set only once before run
- Changed: AddUser takes TestAccount as argument
- Added: Setup/clean up before/after test run
- Added: Access to the current refresh token from pmapi.Client interface.
- Added: Context function to add test a user to bridge without login, just call users.FinishLogin.
- Added: PMAPIController.GetAuthClient returns authenticated client for username.
- Added: Persistent clients does not loggout after every scenario.
- Changed: Disabled no-internet tests.
2021-06-11 09:16:47 +00:00
8109831c07
GODT-35: Finish all details and make tests pass
2021-04-30 05:41:39 +02:00
2284e9ede1
GODT-35: New pmapi client and manager using resty
2021-04-30 05:34:36 +02:00
a89dfc4524
Happy New Year
2021-01-04 11:55:15 +01:00
2e439e17cf
Remove unused scope methods
2020-09-09 06:21:02 +00:00
bf0945eaef
fix: race condition in AuthRefresh that could cause user to be logged out
2020-07-16 10:19:50 +02:00
9241a9bdbf
feat: add reloadkeys method
2020-06-16 12:51:28 +02:00
c19bb0fa97
feat: migrate to gopenpgp v2
2020-06-16 07:34:46 +00:00
8f15041d8f
fix: race condition when updating user auth
2020-04-28 12:21:54 +00:00
1457005f86
fix: address review comments
2020-04-21 13:29:26 +02:00
d4482994ec
fix: missing and incorrect comments
2020-04-21 08:36:39 +00:00
38f0425670
refactor: make sentry report its own package
2020-04-21 08:36:39 +00:00
3f32fd95e0
feat: refresh expired access tokens in one goroutine
2020-04-21 08:36:39 +00:00
80f4e1e346
Fixing unit tests for client manager.
...
* [x] pmapi: refresh auth uid won't change
* [x] bridge tests:
* update mocks
* delete auth when FinishLogin fails
* check for mailbox password
* add `gomock.InOrder` for better test control
* [x] fix linter issues except TODOs
* [x] make rootScheme unexported
* [x] store tests: update mocks
2020-04-21 08:36:39 +00:00
debd374d75
fix: don't delete uid of anonymous clients
2020-04-21 08:36:39 +00:00
ed8595fa5b
test: some work on integration tests (fake)
2020-04-21 08:36:39 +00:00
042c340881
feat: make store use ClientManager
2020-04-21 08:36:38 +00:00
f269be4291
refactor: make pmapi.Client the interface
2020-04-21 08:36:38 +00:00
6e38a65bd8
feat: improve login flow
2020-04-21 08:36:38 +00:00
941e09079c
feat: implement token expiration watcher
2020-04-21 08:36:38 +00:00
ce29d4d74e
feat: switch to proxy when need be
2020-04-21 08:36:38 +00:00
f239e8f3bf
feat: central auth channel for clients
2020-04-21 08:36:38 +00:00
0a55fac29a
feat: simple client manager
2020-04-21 08:36:38 +00:00
17f4d6097a
We build too many walls and not enough bridges
2020-04-08 12:59:16 +02:00