{"id":17301996,"url":"https://github.com/twz123/oidc-token-ferry","last_synced_at":"2026-07-19T16:30:26.229Z","repository":{"id":28525542,"uuid":"118632140","full_name":"twz123/oidc-token-ferry","owner":"twz123","description":"CLI to perform \"out of band\" OpenID Connect authentication","archived":false,"fork":false,"pushed_at":"2024-09-16T13:17:36.000Z","size":28854,"stargazers_count":0,"open_issues_count":3,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-16T11:46:13.832Z","etag":null,"topics":["cli","oidc","openid-connect","out-of-band"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twz123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-23T15:49:48.000Z","updated_at":"2024-09-16T13:16:45.000Z","dependencies_parsed_at":"2023-11-16T15:40:42.617Z","dependency_job_id":"b0a5b6bd-1da8-4db6-aa78-da9507924e53","html_url":"https://github.com/twz123/oidc-token-ferry","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twz123%2Foidc-token-ferry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twz123%2Foidc-token-ferry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twz123%2Foidc-token-ferry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twz123%2Foidc-token-ferry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twz123","download_url":"https://codeload.github.com/twz123/oidc-token-ferry/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240206976,"owners_count":19765034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","oidc","openid-connect","out-of-band"],"created_at":"2024-10-15T11:46:12.801Z","updated_at":"2026-07-19T16:30:26.175Z","avatar_url":"https://github.com/twz123.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenID Connect Token Ferry\n\n[![Build](https://github.com/twz123/oidc-token-ferry/workflows/Build/badge.svg)](https://github.com/twz123/oidc-token-ferry/actions?query=workflow%3ABuild)\n\nPerforms an OpenID Connect Authentication Flow from the command line using an\n\"out of band\" redirect URL. The OpenID Connect Issuer will provide a \"code\"\nafter the user has been authenticated. That code needs to be fed into this CLI.\n\nThis little project has been inspired by [k8s-oidc-helper][koh], which also\nsolves this problem, but specifically for Google as Identity Provider.\n\n[koh]: https://github.com/micahhausler/k8s-oidc-helper\n\n## Usage\n\nGeneral usage:\n\n    Usage:\n    oidc-token-ferry [OPTIONS] \u003ccommand\u003e\n\n    Help Options:\n    -h, --help  Show this help message\n\n    Available commands:\n    patch-kubeconfig    patches Kubernetes kubeconfig files\n    render-go-template  renders credentials using Go Templates\n    render-json         renders credentials as JSON\n    version             Show oidc-token-ferry version information\n\nHow to patch a kubeconfig:\n\n    Usage:\n    oidc-token-ferry [OPTIONS] patch-kubeconfig [patch-kubeconfig-OPTIONS] [KUBECONFIG_FILE] [OUTPUT_FILE]\n\n    Help Options:\n    -h, --help                 Show this help message\n\n    [patch-kubeconfig command options]\n            --user-name=       User name to use when generating client configuration. Either user-name or user-claim-name may be specified.\n            --user-claim-name= Claim that defines the user name to use when generating client configuration. Either user-name or user-claim-name may be specified.\n            --no-open-url      Don't open the redirect URL in a browser automatically\n\n        OpenID Connect Options:\n        -u, --issuer-url=      IdP Issuer URL to be contacted (default: https://accounts.google.com)\n        -i, --client-id=       Client ID to be used\n        -s, --client-secret=   Client Secret to be used\n        -r, --redirect-url=    Redirect URL to be communicated to the IdP (needs to indicate \"out of band\") (default: urn:ietf:wg:oauth:2.0:oob)\n        -c, --claim=           Additional claims to be requested\n\n    [patch-kubeconfig command arguments]\n    KUBECONFIG_FILE:           Path to the kubeconfig file to be patched. Uses the default discovery mechanism if omitted/empty. Special value '-' (hyphen) means read from STDIN.\n    OUTPUT_FILE:               Path to the patched kubeconfig file to be written. Overwrites kubeconfig if omitted/empty. Special value '-' (hyphen) means write to STDOUT.\n\nHow to render credentials via go-template:\n\n    Usage:\n    oidc-token-ferry [OPTIONS] render-go-template [render-go-template-OPTIONS] TEMPLATE_STRING\n\n    Help Options:\n    -h, --help                 Show this help message\n\n    [render-go-template command options]\n        -o, --output-file=     Output file to write (defaults to STDOUT if omitted)\n            --no-open-url      Don't open the redirect URL in a browser automatically\n\n        OpenID Connect Options:\n        -u, --issuer-url=      IdP Issuer URL to be contacted (default: https://accounts.google.com)\n        -i, --client-id=       Client ID to be used\n        -s, --client-secret=   Client Secret to be used\n        -r, --redirect-url=    Redirect URL to be communicated to the IdP (needs to indicate \"out of band\") (default: urn:ietf:wg:oauth:2.0:oob)\n        -c, --claim=           Additional claims to be requested\n\n    [render-go-template command arguments]\n    TEMPLATE_STRING:           Go Template to be rendered. An empty template indicates that the template is to be read from STDIN.\n\n## Building\n\n    make\n\nThis will build a statically linked binary.\n\n## License\n\n    MIT License\n\n    Copyright (c) 2018-2022 Tom Wieczorek\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    of this software and associated documentation files (the \"Software\"), to deal\n    in the Software without restriction, including without limitation the rights\n    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the Software is\n    furnished to do so, subject to the following conditions:\n\n    The above copyright notice and this permission notice shall be included in all\n    copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n    SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwz123%2Foidc-token-ferry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwz123%2Foidc-token-ferry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwz123%2Foidc-token-ferry/lists"}