Christopher Crone
e5335adedd
Azure: Refactor login errors
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-06-04 10:20:39 +02:00
Christopher Crone
35789ace12
Azure: Refactor creation of login server
...
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-06-03 17:10:54 +02:00
Christopher Crone
88ba591fc3
Seed random with nanosecond time
...
It's possible that users will run commands more than once a second.
Thus, seeding the random number generator with the current time in
seconds could produce results like the same container name in subsequent
commands.
Seeding with the current time in nanoseconds reduces the probability of
this.
Signed-off-by: Christopher Crone <christopher.crone@docker.com>
2020-05-22 10:46:54 +02:00
Guillaume Tardif
7cf2309ca6
Separate azure login bits in LocalServer + Helper (mocked part)
2020-05-15 10:40:48 +02:00
Guillaume Tardif
7edc6659a2
Add unit tests for login process
2020-05-15 10:28:31 +02:00
Guillaume Tardif
146dd3e639
Fix tokenStore not creating ~/.azure folder if not exist
2020-05-15 10:15:56 +02:00
Guillaume Tardif
8b116b7c73
get an available port for login localhost server, instead of hardcoded port
2020-05-15 10:15:56 +02:00
Guillaume Tardif
d49773e348
Use cli context for login
2020-05-15 10:15:56 +02:00
Guillaume Tardif
bd5e3af2d4
Plug new authorizer and remove az dependency
2020-05-15 10:15:56 +02:00
Guillaume Tardif
69f10fe80c
Extract interface / types to allow unit tests / mock
2020-05-15 10:15:56 +02:00
Guillaume Tardif
1e19d977e0
Initial functional login command : added Cloud API with generic Login()
2020-05-15 10:04:22 +02:00