Hidetake Iwata
1169cb534b
refactor: replace io/ioutil with os, io package ( #832 )
2022-11-19 19:06:22 +09:00
Huang Huang
3602948645
Correct the --listen-address flag at stage 2 instructions ( #815 )
2022-10-16 14:26:54 +09:00
Hidetake Iwata
5ba7f551cf
Refactor tests ( #740 )
...
* refactor: use t.Setenv()
* refactor: use t.TempDir()
* refactor: use t.Cleanup()
2022-07-16 22:08:55 +09:00
Hidetake Iwata
7152bccd21
refactor: migrate to Testify Mock ( #739 )
2022-07-16 16:55:51 +09:00
Hidetake Iwata
775841a72b
Remove deprecation of standalone mode ( #680 )
...
* Remove deprecation of standalone mode
* Update standalone-mode.md
2022-01-08 17:48:00 +09:00
Hidetake Iwata
237e53313d
Add flag to set custom browser command ( #622 )
...
* Add flag to set custom browser command
* Use --browser-command in system_test
* Add --browser-command= to setup message
2021-09-05 11:35:03 +09:00
Hidetake Iwata
9a850d7072
Migrate to github.com/golang-jwt/jwt/v4 ( #604 )
2021-08-08 11:39:45 +09:00
Pedro Kiefer
a0cfde7198
refactor: add --oidc-use-pkce flag to force PKCE authorization flow ( #599 )
2021-08-04 06:38:26 +09:00
Hidetake Iwata
d0364f0942
Fix "~" is not expanded on Windows ( #550 )
...
* Run tests on macOS and Windows
* Use filepath and client-go/util/homedir package
2021-05-04 11:12:10 +09:00
Hidetake Iwata
eb7ce56909
Expand homedir paths in get-token options ( #498 )
...
* Expand homedir paths in get-token options
* Replace go-homedir with Go 1.16 os.UserHomeDir()
2021-03-15 19:03:11 +09:00
Mattias Appelgren
97cc85d079
repository: Expand ~ in homedir ( #489 )
...
Fixes: https://github.com/int128/kubelogin/issues/488
2021-03-14 09:07:29 +09:00
renovate[bot]
44ffd69cbf
Update module coreos/go-oidc to v3 ( #463 )
...
* Update module coreos/go-oidc to v3
* Update import path to github.com/coreos/go-oidc/v3/oidc
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2021-02-11 17:23:22 +09:00
Hidetake Iwata
c3f636300e
Update to golangci-lint v1.36.0 ( #460 )
...
* Update golangci-lint.yaml
* Use golang.org/x/term
SA1019: package golang.org/x/crypto/ssh/terminal is deprecated: this package moved to golang.org/x/term. (staticcheck)
* Add workflow name
2021-02-11 17:14:32 +09:00
Yuri V
38772898fc
Switch klog to v2 ( #439 )
...
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2021-01-09 18:51:04 +09:00
Hidetake Iwata
cffb00f386
Refactor: extract tests into authentication_test.go ( #431 )
2020-11-23 18:20:47 +09:00
Hidetake Iwata
8e1a63b1a2
Change mutex scope to bind address port ( #430 )
2020-11-23 17:41:07 +09:00
Hidetake Iwata
ebf81debe1
Refactor: credentialplugin/get_token_test.go ( #429 )
...
* Refactor: extract const vars
* Refactor: extract ROPC test case
2020-11-22 20:01:45 +09:00
Hidetake Iwata
2f271b5870
Refactor: replace Input fields with oidc.Provider ( #428 )
2020-11-21 12:35:23 +09:00
Hidetake Iwata
b1d8e8f7e1
Refactor: rewrite with Go errors package ( #427 )
2020-11-21 12:10:42 +09:00
Hidetake Iwata
5a3227409c
Refactor: rename to infrastructure package ( #426 )
2020-11-21 07:56:52 +09:00
Hidetake Iwata
13d232ec21
Refactor: move oidc/client package ( #425 )
2020-11-21 07:27:34 +09:00
Hidetake Iwata
9bab6b2ccd
Refactor: extract tokencache and repository package ( #424 )
2020-11-20 07:01:16 +09:00
Hidetake Iwata
93fc548544
Refactor: extract kubeconfig package ( #423 )
...
* Refactor: extract kubeconfig package
* Refactor: use pass by value instead of reference
2020-11-18 10:36:42 +09:00
Hidetake Iwata
4773b67abd
Refactor: extract credentialplugin package ( #422 )
2020-11-18 10:00:39 +09:00
Hidetake Iwata
8926e8940a
Fix TLS error if CA certificate is not set ( #412 )
2020-11-08 15:56:41 +09:00
Hidetake Iwata
ce7784b8a0
Add TLS renegotiation flags ( #411 )
2020-11-07 13:08:29 +09:00
Hidetake Iwata
34762216c1
Refactor: extract tlsclientconfig.Config ( #409 )
2020-11-03 14:37:24 +09:00
Eric Poitras
878847f937
feat(389): Prevent concurrent authentication using a lockfile. ( #397 )
...
* feat(389): Prevent concurrent authentication using a lockfile to protect the local port allocation.
* Fix test
* Refactor: inline values
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2020-10-25 14:32:53 +09:00
Hidetake Iwata
b701a6f0aa
Refactor: aggregate test cases to lease and full options ( #406 )
2020-10-25 12:24:35 +09:00
Christoph Stäbler
d1b89e3d38
Add username in token cache key ( #404 )
2020-10-24 20:44:29 +09:00
Hidetake Iwata
64bfc5a465
Refactor authentication use-cases ( #395 )
2020-10-03 20:01:26 +09:00
Hidetake Iwata
5b2c82fc33
Refactor: replace DTO with oidc.TokenSet type ( #394 )
...
* Refactor: remove IDTokenClaims from TokenSet and decode in use-cases
* Refactor: use oidc.TokenSet for cache repository
2020-10-03 17:49:21 +09:00
Hidetake Iwata
1dee4a354e
Refactor: extract oidc.Provider ( #393 )
2020-10-03 08:35:35 +09:00
Hidetake Iwata
257c05dbf3
Change authentication timeout to 180 sec ( #388 )
2020-09-28 09:28:44 +09:00
Hidetake Iwata
ebdfcfb1c8
Add --authentication-timeout-sec flag ( #387 )
2020-09-27 21:55:55 +09:00
Hidetake Iwata
5ab2f9e01e
Refactor: replace temporary dirs with t.TempDir() ( #382 )
2020-09-25 10:10:11 +09:00
TJ Miller
56169d1673
Add support for HTTPS redirect URI ( #381 )
...
* Add local server certificate option
* fix trailing slash from step 5 kubectl config set-credentials
* Add local https documentation
* Change flags to --local-server-cert and --local-server-key
* Add tests for flags
Co-authored-by: TJ Miller <millert@us.ibm.com >
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2020-09-25 09:44:00 +09:00
Hidetake Iwata
c051d4e51a
Refactor: close channel in writer goroutine ( #375 )
2020-09-03 06:44:46 +09:00
Hidetake Iwata
58d170fa65
Add --open-url-after-authentication option ( #350 )
...
* Add --open-url-after-authentication option
* Add integration test for --open-url-after-authentication
2020-08-01 10:38:33 +09:00
Hidetake Iwata
c488888834
Refactor: pull up packages of domain ( #349 )
2020-07-30 09:37:10 +09:00
Hidetake Iwata
2cd741735e
Refactor: move templates.AuthCodeBrowserSuccessHTML to authcode ( #348 )
2020-07-30 09:29:49 +09:00
Hidetake Iwata
dbb684f10e
Refactor: use oidc.TokenSet in adaptors ( #347 )
2020-07-30 09:26:21 +09:00
Hidetake Iwata
a0e81e762c
Refactor: split authentication package into methods ( #346 )
2020-07-30 00:31:23 +09:00
Hidetake Iwata
c4ce1629e2
Refactor: regenerate with the latest mockgen ( #345 )
2020-07-30 00:04:56 +09:00
Hidetake Iwata
804a245fde
Refactor: rename to AuthCodeBrowser ( #342 )
2020-07-26 18:49:22 +09:00
Hidetake Iwata
923a4251f1
Change messages in standalone mode
2020-07-26 18:11:39 +09:00
Hidetake Iwata
98b84d87e0
Refactor: change options description
2020-07-26 15:39:09 +09:00
Hidetake Iwata
1ae2008e28
Refactor: extract tlsOptions
2020-07-26 15:39:09 +09:00
Hidetake Iwata
8197b5b35a
Refactor: extract authentication.go
2020-07-26 12:00:15 +09:00
Hidetake Iwata
7196c64bec
Refactor: rename to addFlags()
2020-07-26 12:00:15 +09:00