William Martin
e4ed4041cd
Use auth config and only print stdout in status
2023-12-06 14:06:28 +01:00
Sam Coe
eca5f72328
UX polish and standardization of language
2023-12-06 14:06:28 +01:00
William Martin
df274d4f3a
Implement auth switch
2023-12-06 14:06:28 +01:00
William Martin
72d5550407
Implemented auth logout for multiaccount
2023-12-06 14:06:28 +01:00
William Martin
1bf6023164
Display message when logging into existing account
2023-12-06 14:06:28 +01:00
William Martin
a9acece7dd
Split Login into adding a user and switching
...
It makes clear the steps that should be needed to "switch" which should be
shared between Login (add user and switch to it), Logout (remove user and switch
to another), and Switch (no modification and switch to a user)
2023-12-06 14:06:28 +01:00
William Martin
209aed30b4
Fix typo on migration comment
2023-12-06 14:06:28 +01:00
William Martin
a00294eff9
Fix double negatives in migration errors
2023-12-06 14:06:28 +01:00
William Martin
06c36a74c2
Remove host entries without valid tokens during migration
2023-12-06 14:06:28 +01:00
Sam Coe
4f33d88c5f
Set user level config values automatically when setting host level config values
2023-12-06 14:06:28 +01:00
Sam Coe
38b73e3f85
Set host level git_protocol on login
2023-12-06 14:06:28 +01:00
Sam Coe
eb771aecc9
Address PR comments
2023-12-06 14:06:28 +01:00
Sam Coe
d2ff55737c
Enable multi-account migration
2023-12-06 14:06:28 +01:00
Sam Coe
68e30beac4
Logout removes token from keyring using username
2023-12-06 14:06:28 +01:00
Sam Coe
2ca8b1ea94
Login sets token in keyring using username
2023-12-06 14:06:28 +01:00
Sam Coe
d8084f5f6d
Hide all keyring package implementation inside internal keyring package
2023-12-06 14:06:28 +01:00
Sam Coe
e0ebbc9e88
Add auth token migration to multi account migration
2023-12-06 14:06:28 +01:00
William Martin
9efa7248a9
Initial multi-account migration work
2023-12-06 14:06:28 +01:00
Sam Coe
7924878315
Fix git protocol and refactor Config interface ( #8246 )
2023-10-27 15:42:05 +02:00
Sam Coe
20baccfa85
Add default configuration back from go-gh ( #8244 )
2023-10-24 13:23:31 +02:00
William Martin
4fc1999847
Add link to token source issue
2023-10-19 15:39:10 +02:00
William Martin
6dc04bb1e2
Remove GetOrDefault uses in favour of GitProtocol
2023-10-19 12:57:19 +02:00
William Martin
7d8c1af009
Fix GitProtocol signature and rework test descriptions
2023-10-19 12:49:38 +02:00
William Martin
b9cbee0462
Remove incorrect comment about HasEnvToken
2023-10-19 12:39:31 +02:00
William Martin
3c3fbcdb66
Remove Login branch that handles empty username
2023-10-19 12:35:43 +02:00
William Martin
aa8848471f
Remove Logout branch that handles empty hostname
2023-10-19 12:33:15 +02:00
William Martin
c430da7329
Ensure all AuthConfig tests are isolated on disk
2023-10-19 12:31:41 +02:00
William Martin
c9de817865
Avoid using keyring unnecessarily in AuthConfig tests
...
This is to avoid the impression that the keyring matters, when the test
is actually about general auth behaviour
2023-10-19 12:26:52 +02:00
William Martin
fa80802c81
Add tests for AuthConfig DefaultHost
2023-10-19 12:24:25 +02:00
William Martin
07f5ca48d8
Share config.Read setup in AuthConfig tests
2023-10-19 12:24:05 +02:00
William Martin
e0bc2ff0ca
Add test that host is added on Login
2023-10-19 12:08:03 +02:00
William Martin
cb7672e573
Add additional comment on Logout ignoring errors
2023-10-19 12:05:40 +02:00
William Martin
3380831672
Rewrite AuthConfig User and GitProtocol tests
2023-10-19 12:05:14 +02:00
William Martin
e011633cdc
Add tests for AuthConfig HasEnvToken
2023-10-18 18:10:00 +02:00
William Martin
07110eca33
Add tests for AuthConfig Token
2023-10-18 17:51:53 +02:00
William Martin
52ba99ebab
Update AuthConfig to use default fn
2023-10-18 17:51:41 +02:00
William Martin
614e49296b
Add tests for AuthConfig Login and Logout
2023-10-18 17:09:20 +02:00
William Martin
34b0b33f24
Add initial AuthConfig tests
2023-10-18 16:31:13 +02:00
William Martin
5f645eaded
Add tests for config GetOrDefault
2023-10-18 16:10:53 +02:00
William Martin
b94f458950
Add initial tests for config Get
2023-10-18 15:51:46 +02:00
Keith Bailey
97755c6bf0
Document when gh auth login writes oauth token to plain text ( #7781 )
2023-09-18 11:34:13 +02:00
Sam Coe
bf7db84ca8
Add timeouts to keyring operations ( #7580 )
2023-06-20 23:45:20 +00:00
Alexander Seiler
218f29f296
Correct some typos
2023-04-21 03:51:31 +02:00
Sam Coe
dbc2f05124
Update go-gh to v2 ( #7299 )
...
* Update go-gh
* Update code for go-gh v2
2023-04-16 15:34:23 +10:00
Sam Coe
39805fa9b1
Properly handle closing files that have been writen to ( #7199 )
2023-03-23 01:17:47 +00:00
Benjamin Levesque
9596fd5368
Skip checking keyring for token in certain scenarios ( #7169 )
2023-03-18 08:59:43 +11:00
Sam Coe
c9a2d85793
Cleanup config.AuthToken and config.DefaultHost methods ( #7049 )
2023-02-28 00:24:45 +00:00
Sam Coe
df83dc2d58
Add ability to store tokens in encrypted storage ( #7043 )
2023-02-28 00:04:53 +00:00
Sam Coe
a33e12a21d
Refactor Config interface in preperation for encrypted token storage ( #7033 )
2023-02-28 10:51:12 +11:00
Mislav Marohnić
e4f5545e86
Go 1.19: fix comment formatting for moq-generated mocks
2022-12-12 16:58:25 +01:00