Hidetake Iwata
3d114bfeba
Lock token cache file before authentication ( #1126 )
...
* Lock token cache file in authentication
* Fix tests
* make generate
* Lock before FindByKey
* Fix test
2024-09-21 14:54:32 +09:00
Hidetake Iwata
66127ff3fc
Migrate to mockery packages feature ( #1124 )
...
* Migrate to mockery packages feature
* Fix workflow
2024-08-17 12:27:13 +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
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
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
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
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
34762216c1
Refactor: extract tlsclientconfig.Config ( #409 )
2020-11-03 14:37:24 +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
c488888834
Refactor: pull up packages of domain ( #349 )
2020-07-30 09:37:10 +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
923a4251f1
Change messages in standalone mode
2020-07-26 18:11:39 +09:00
Hidetake Iwata
1ae2008e28
Refactor: extract tlsOptions
2020-07-26 15:39:09 +09:00
Hidetake Iwata
8b9e31b4c5
Refactor: error messages and testing/logger ( #243 )
...
* Refactor: respect -v option in testing/logger
* Refactor: revise error messages
2020-02-22 12:31:00 +09:00
Hidetake Iwata
aac8780caf
Refactor: move to testing/logger
2020-02-21 22:39:27 +09:00
Hidetake Iwata
f89525b184
Refactor: extract domain/jwt and testing/jwt ( #241 )
...
* Refactor: extract domain/jwt and testing/jwt
* Refactor: remove jwt-go dep from product code
2020-02-21 22:33:08 +09:00
Hidetake Iwata
42879dc915
Revise setup instruction ( #235 )
2020-02-12 21:27:08 +09:00
Hidetake Iwata
7ce98c7119
Add --certificate-authority-data option ( #233 )
2020-02-12 10:15:12 +09:00
Hidetake Iwata
d223175b92
Refactor dependency injection ( #209 )
...
* Refactor: use func type instead of factory interface
* Refactor: remove duplicated dependencies in di.go
2020-01-17 22:01:40 +09:00
Hidetake Iwata
76f61300d6
Refactor: extract oidc.Claims model ( #202 )
...
* Refactor: extract oidc.Claims model
* Refactor: extract Claims.IsExpired()
2019-12-26 20:17:30 +09:00
Hidetake Iwata
cc48fb4cf7
Refactor: regenerate mocks with newer mockgen ( #181 )
2019-10-31 11:17:53 +09:00
Hidetake Iwata
ec7f7a062a
Refactor: extract GrantOptionSet ( #180 )
2019-10-31 11:02:03 +09:00
Hidetake Iwata
5a71247214
Refactor: extract authentication options ( #177 )
...
* Refactor: extract authentication options
* Refactor: make subtests
2019-10-30 21:32:51 +09:00
Hidetake Iwata
2700e439b9
Refactor: remove kubeconfig.OIDCConfig for single responsibility ( #173 )
...
* Refactor: remove kubeconfig.OIDCConfig for single responsibility
* fixup: add comments and rename methods
* fixup: fix methods name
* fixup: replace GetX509OrNil with SetRootCAs
2019-10-28 23:45:17 +09:00
Hidetake Iwata
dbf6238029
Refactor: rename auth package ( #172 )
2019-10-28 20:02:59 +09:00
Hidetake Iwata
93e893bc36
Refactor: replace ListenPort with BindAddress option ( #171 )
2019-10-28 19:59:45 +09:00
Hidetake Iwata
0bc117ddc7
Refactor ( #158 )
...
* Refactor: template rendering
* Refactor: rename DecodedIDToken fields
* Refactor: expand command options
* Refactor: improve help messages
2019-09-30 18:27:23 +09:00
Hidetake Iwata
8a5efac337
Add deprecation message of standalone mode ( #155 )
2019-09-28 11:03:03 +09:00
Hidetake Iwata
bf02210f2a
Refactor: merge interface and implementation package ( #141 )
...
* Refactor: move logger interfaces
* Refactor: move oidc interfaces
* Refactor: move env interface
* Refactor: move credential plugin interface
* Refactor: move token cache interface
* Refactor: move kubeconfig interface
* Refactor: move cmd interface
* Refactor: move use-cases interfaces
2019-08-28 22:55:28 +09:00