{"id":22268189,"url":"https://github.com/curityio/sender-constrained-token-plugin","last_synced_at":"2026-04-19T10:32:42.692Z","repository":{"id":45334468,"uuid":"413744602","full_name":"curityio/sender-constrained-token-plugin","owner":"curityio","description":"An API gateway plugin for verifying Certificate-Bound Access Tokens (RFC8705)","archived":false,"fork":false,"pushed_at":"2022-04-15T11:14:55.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-12T12:48:03.766Z","etag":null,"topics":["api-gateway","jwt","lua","nginx","proof-of-possession","use-case","zero-trust"],"latest_commit_sha":null,"homepage":"https://curity.io/resources/learn/mutual-tls-api/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/curityio.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}},"created_at":"2021-10-05T09:02:46.000Z","updated_at":"2023-03-22T10:46:14.000Z","dependencies_parsed_at":"2022-09-01T22:52:28.386Z","dependency_job_id":null,"html_url":"https://github.com/curityio/sender-constrained-token-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/sender-constrained-token-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fsender-constrained-token-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fsender-constrained-token-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fsender-constrained-token-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fsender-constrained-token-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/sender-constrained-token-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Fsender-constrained-token-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32004035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":["api-gateway","jwt","lua","nginx","proof-of-possession","use-case","zero-trust"],"created_at":"2024-12-03T11:11:50.865Z","updated_at":"2026-04-19T10:32:42.653Z","avatar_url":"https://github.com/curityio.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sender Constrained Token Plugin\n\n[![Quality](https://img.shields.io/badge/quality-experiment-red)](https://curity.io/resources/code-examples/status/)\n[![Availability](https://img.shields.io/badge/availability-source-blue)](https://curity.io/resources/code-examples/status/)\n\nA LUA plugin for verifying sender constrained tokens in the reverse proxy.\n\n## Overview\n\nSender-constrained tokens are tokens that are bound to a certain client. These tokens cannot - in contrary to ordinary Bearer tokens - be used by a malicious client to access protected resources.\n\nIn financial-grade systems, APIs are secured by Mutual TLS, and [Certificate Bound Access Tokens](https://www.rfc-editor.org/rfc/rfc8705.html) are used.\\\nThe client certificate used in API requests must then match that used at the time of authentication.\n\n[Demonstrating Proof-of-Possession (DPoP)](https://datatracker.ietf.org/doc/draft-ietf-oauth-dpop/) or [OAuth 2.0 Token Binding](https://datatracker.ietf.org/doc/html/draft-ietf-oauth-token-binding) are other mechanism for sender constraining tokens though not supported by this plugin.\n\n## Plugin\n\nThis plugin makes the above token binding checks in an NGINX based reverse proxy.\\\nSee the following article for further details on how this plugin is used:\n\n- [Mutual TLS APIs Code Example](https://curity.io/resources/learn/mutual-tls-api/)\n\n### Configuration Parameters\n\n`type`: Specify which type of constraint the token has. Currently, the only supported value is `certificate-bound`.\n\n### Running the Plugin\nThe following configuration at the reverse proxy will load and execute the plugin:\n\n```\nlocal tokenConfig = {\n  type = 'certificate-bound'\n}\nlocal senderConstrainedTokenPlugin = require 'sender-constrained-token-plugin'\nsenderConstrainedTokenPlugin.execute(tokenConfig)\n```\n\n## More Information\n\nPlease visit [curity.io](https://curity.io/) for more information about the Curity Identity Server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fsender-constrained-token-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Fsender-constrained-token-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Fsender-constrained-token-plugin/lists"}