Tobias Wolter
9da00c5e21
Respect KUBECACHEDIR environment variable ( #975 )
...
This adds a check for the existence of a (non-empty) `KUBECACHEDIR`
environment variable that will be used to construct the cache directory
path if present.
2023-12-16 13:32:42 +09:00
Hidetake Iwata
622dc5ba0b
Refactor #944 ( #951 )
2023-06-24 15:26:39 +09:00
Reza Nikoopour
069ff68d99
Added flag to let user set redirect uri for authcode-keyboard ( #944 )
2023-06-23 16:53:55 +09:00
renovate[bot]
9e2fcd8cdb
fix(deps): update module github.com/golang-jwt/jwt/v4 to v5 ( #925 )
...
* fix(deps): update module github.com/golang-jwt/jwt/v4 to v5
* Replace with `jwt.RegisteredClaims`
* Replace with `jwt.NewNumericDate`
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2023-05-14 21:38:48 +09:00
renovate[bot]
974369fe6f
fix(deps): update module golang.org/x/oauth2 to v0.8.0 ( #922 )
2023-05-14 19:19:18 +09:00
Hidetake Iwata
10412effa2
Run go fmt ( #866 )
...
* Run go fmt
* Generated by GitHub Actions (go / generate)
https://github.com/int128/kubelogin/actions/runs/4971610724
---------
Co-authored-by: update-generated-files-action <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-14 18:21:55 +09:00
Martin Linkhorst
f03d4fe821
get-token: add --force-refresh flag to refresh ID token ( #879 )
2023-02-17 15:25:11 +09:00
Hidetake Iwata
adfbc48b24
Handle verification_url field in device flow ( #846 )
2022-12-24 19:10:21 +09:00
Hidetake Iwata
345465a5d3
Refactor test ( #847 )
2022-12-24 17:00:59 +09:00
Bastian
cda2eccaac
feat(authentication): add oauth2 device grant ( #837 )
2022-12-22 08:03:10 +09:00
renovate[bot]
b640aa17df
chore(deps): update module go to 1.19 ( #751 )
...
* chore(deps): update module go to 1.19
* Fix deprecations
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2022-11-19 21:45:08 +09:00
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