Hidetake Iwata
b05e92d466
Remove deprecated flag --oidc-redirect-url-hostname ( #1450 )
2025-11-24 16:48:14 +09:00
Hidetake Iwata
a4e614aa85
Update github.com/golangci/golangci-lint to v2 ( #1336 )
...
* Update github.com/golangci/golangci-lint to v2
* Handle io.Close()
2025-05-17 10:05:32 +09:00
Hidetake Iwata
bc7e71f586
Change default token cache storage to disk ( #1264 )
...
* Change default token cache storage to disk
* Fix
* Fix
* Clean up both storages
2025-01-30 18:47:07 +09:00
Hidetake Iwata
3121e55498
Update apiVersion to client.authentication.k8s.io/v1 (integration-test) ( #1251 )
2025-01-19 17:58:55 +09:00
Hidetake Iwata
e31ad59e63
Add clean command ( #1248 )
...
* Add clean command
* Refactor
* Refactor
2025-01-18 22:24:23 +09:00
Hidetake Iwata
0c160f9db2
Refactor integration-test ( #1242 )
...
* Refactor integration-test
* Refactor
2025-01-13 16:29:27 +09:00
Hidetake Iwata
8c7903b2db
Test PKCE by default (integration-test) ( #1241 )
2025-01-13 15:50:48 +09:00
Hidetake Iwata
6c9d198ef5
Add --token-cache-storage flag ( #1236 )
2025-01-12 14:55:46 +09:00
kalle (jag)
afb25f511c
Added key cache via OS keyring ( #973 )
...
* Added key cache via OS keyring
* Fix lint issue
* Disable keyring in integration tests
* Disable keyring in system test
---------
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2025-01-08 12:32:26 +09:00
Hidetake Iwata
ad727ee576
Add links to OIDC spec or RFC ( #1172 )
2024-11-08 11:28:19 +09:00
Hidetake Iwata
a87beb33b6
Use Go 1.22 router (integration_test) ( #1171 )
2024-11-08 10:47:27 +09:00
Hidetake Iwata
5d657ed981
Extract service package (integration_test) ( #1170 )
...
* Extract service package (integration_test)
* Refactor
* make generate
* Rename
* Comment
* Refactor
2024-11-08 10:20:20 +09:00
renovate[bot]
a49bd30178
fix(deps): update module gopkg.in/yaml.v2 to v3 ( #845 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-16 17:01:57 +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
1169cb534b
refactor: replace io/ioutil with os, io package ( #832 )
2022-11-19 19:06:22 +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
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
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
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
881786a820
Add integration test for HTTPS local server ( #383 )
2020-09-25 10:14:17 +09:00
Hidetake Iwata
5ab2f9e01e
Refactor: replace temporary dirs with t.TempDir() ( #382 )
2020-09-25 10:10:11 +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
e152e95a9f
Refactor: add integration test of PKCE ( #293 )
...
* Refactor: add integration test of PKCE
* Refactor: fix name to pkce/Params.IsZero()
2020-05-16 14:29:42 +09:00
Hidetake Iwata
bf8eefd045
Refactor: reduce test cases of integration test ( #292 )
2020-05-14 16:49:39 +09:00
Hidetake Iwata
e88138c640
Refactor: fix token verifier does not respect clock ( #290 )
2020-05-13 15:45:14 +09:00
Hidetake Iwata
9ad520ba22
Refactor: inject stdout mock in integration test ( #289 )
2020-05-13 11:25:59 +09:00
Hidetake Iwata
c5621239e8
Refactor: remove unused mock and files
2020-05-12 14:17:19 +09:00
Hidetake Iwata
582ca48092
Refactor: replace newCredentialPluginWriterMock
2020-05-12 14:17:18 +09:00
Hidetake Iwata
da32d2184d
Refactor: remove Server.NewTokenResponse() ( #286 )
2020-05-11 20:41:46 +09:00
Hidetake Iwata
3a9768d6de
Refactor: extract httpdriver package ( #285 )
2020-05-11 12:06:11 +09:00
Hidetake Iwata
16d6fa2fbb
Refactor: replace idp mock with oidcserver package ( #284 )
2020-05-11 11:51:21 +09:00
Hidetake Iwata
d5c738697f
Refactor: tidy up
2020-04-10 20:32:22 +09:00
Hidetake Iwata
777a60c96c
Refactor: rename package
2020-04-10 17:15:02 +09:00
Hidetake Iwata
6f6e0723f1
Refactor: extract integration_test.authCodeFlowConfig
2020-04-10 16:32:02 +09:00
Hidetake Iwata
59b5f1bd89
Add --oidc-redirect-url-hostname flag ( #269 )
2020-04-08 15:25:19 +09:00
Matthew M. Boedicker
123d7c8124
Add --oidc-extra-url-params argument ( #255 )
...
* Add --oidc-extra-url-params argument
This accepts a comma-separated list of key-value pairs that will be
added to get token requests as query string parameters.
Closes #254 .
* Refactor
- move code setting the extra params to the authorization code flow specific functions (it is not needed in ROPC flow)
- add unit tests
- rename flag to --oidc-auth-request-extra-params
- add description to README.md
* Add integration test for --oidc-auth-request-extra-params
Co-authored-by: Hidetake Iwata <int128@gmail.com >
2020-03-25 11:52:53 +09:00
Hidetake Iwata
e3bec130f4
Refactor: fix mock package path
2020-02-21 22:59:59 +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
a46dab3dfd
Fix error if multiple aud claim is given ( #240 )
2020-02-21 09:58:01 +09:00
Hidetake Iwata
7ce98c7119
Add --certificate-authority-data option ( #233 )
2020-02-12 10:15:12 +09:00
Hidetake Iwata
9018cd65c5
Refactor: rename to integration_test ( #228 )
2020-02-07 20:58:13 +09:00