{"id":41082041,"url":"https://github.com/neticdk/go-token-handler","last_synced_at":"2026-01-22T13:41:36.191Z","repository":{"id":191240944,"uuid":"684068659","full_name":"neticdk/go-token-handler","owner":"neticdk","description":"Generic BFF to handle OAuth for single-page applications","archived":false,"fork":false,"pushed_at":"2026-01-19T08:42:45.000Z","size":239,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-19T16:42:59.207Z","etag":null,"topics":[],"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/neticdk.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-28T11:46:09.000Z","updated_at":"2026-01-19T08:42:30.000Z","dependencies_parsed_at":"2023-08-29T00:43:41.283Z","dependency_job_id":"6369b669-6704-4dd3-9c04-3cf84d75be33","html_url":"https://github.com/neticdk/go-token-handler","commit_stats":null,"previous_names":["neticdk/go-token-handler"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/neticdk/go-token-handler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neticdk%2Fgo-token-handler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neticdk%2Fgo-token-handler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neticdk%2Fgo-token-handler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neticdk%2Fgo-token-handler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neticdk","download_url":"https://codeload.github.com/neticdk/go-token-handler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neticdk%2Fgo-token-handler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663844,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-01-22T13:41:35.378Z","updated_at":"2026-01-22T13:41:36.176Z","avatar_url":"https://github.com/neticdk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Token Handler\n\nThis project is basically a generic BFF designed to keep OAuth 2.0 access token and other\nsensitive information such as refresh token, server side to reduce the risk of leaking.\n\nThe service exposes a simple REST API to allow clients to start an authentication flow and\nwhen authentication is done it allows for proxying requests to backend services adding\nOAuth 2.0 bearer token in authorization header.\n\n## Configuration\n\nMost configuration options are available in both configuration file, command line flags and\nenvironment variables. However, configuration of identity providers and upstream servers may\nonly be done through the configuration file. The configuration file supports substitution of\nenvironment variables for the identity providers such that client secrets may be passed\nthrough environment variables.\n\nThe configuration file has the following format.\n\n```yaml\nlistenAddr: ':8081'\nhashKey: 'bCXgBjNPIeAUDzTYKf4E2xXNZaznkyTjQT7zh/UXJcz3CsPMu3FFoxG4WqcQY3foPmKtAdexMLXJ5L3vJkn1og=='\nblockKey: 'Cl/c1FWNiCDp32/FhpGgzgqUIcLdYScHa+AiLG2gWFI='\nproviders:\n  netic:\n    clientID: inventory\n    clientSecret: ${NETIC_SECRET}\n    issuer: http://localhost:8080/realms/test\nupstreams:\n  api: http://localhost:8086\norigins:\n  - http://localhost:3000\nredirectURL: ''\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneticdk%2Fgo-token-handler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneticdk%2Fgo-token-handler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneticdk%2Fgo-token-handler/lists"}