{"id":21235986,"url":"https://github.com/lddl/grpc-jwt","last_synced_at":"2025-12-29T18:31:41.435Z","repository":{"id":57564486,"uuid":"323930584","full_name":"LdDl/grpc-jwt","owner":"LdDl","description":"JWT recipe for gRPC-based server","archived":false,"fork":false,"pushed_at":"2023-10-31T11:21:58.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T18:49:14.032Z","etag":null,"topics":["authentication","grpc","grpc-client","grpc-jwt","grpc-server","jwt","jwt-authentication","microservices"],"latest_commit_sha":null,"homepage":"","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/LdDl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-12-23T14:59:17.000Z","updated_at":"2022-03-25T08:07:58.000Z","dependencies_parsed_at":"2024-06-20T04:25:15.062Z","dependency_job_id":null,"html_url":"https://github.com/LdDl/grpc-jwt","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgrpc-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgrpc-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgrpc-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LdDl%2Fgrpc-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LdDl","download_url":"https://codeload.github.com/LdDl/grpc-jwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243676717,"owners_count":20329432,"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":["authentication","grpc","grpc-client","grpc-jwt","grpc-server","jwt","jwt-authentication","microservices"],"created_at":"2024-11-21T00:05:32.050Z","updated_at":"2025-12-29T18:31:41.395Z","avatar_url":"https://github.com/LdDl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/LdDl/grpc-jwt?status.svg)](https://godoc.org/github.com/LdDl/grpc-jwt)\n[![Build Status](https://travis-ci.com/LdDl/grpc-jwt.svg?branch=master)](https://travis-ci.com/LdDl/grpc-jwt)\n[![Sourcegraph](https://sourcegraph.com/github.com/LdDl/grpc-jwt/-/badge.svg)](https://sourcegraph.com/github.com/LdDl/grpc-jwt?badge)\n[![Go Report Card](https://goreportcard.com/badge/github.com/LdDl/grpc-jwt)](https://goreportcard.com/report/github.com/LdDl/grpc-jwt)\n[![GitHub tag](https://img.shields.io/github/tag/LdDl/grpc-jwt.svg)](https://github.com/LdDl/grpc-jwt/releases)\n\n# grpc-jwt - JWT recipe for gRPC-based server\n\n### *preamble: almost all code for JWT stuff was taken from [appleyboy's](https://github.com/appleboy/gin-jwt#jwt-middleware-for-gin-framework) repository*\n\n## Table of Contents\n- [Usage](#usage)\n    - [Server](#server-example)\n    - [Client](#client-example)\n- [Support](#support)\n- [Dependencies](#dependencies)\n- [License](#license)\n\n\n## **Usage**\n\nIf you are planning to use private/public keys, you should generate it first. There is example of generting RS512 keys below:\n```shell\nssh-keygen -t rsa -b 4096 -m PEM -f jwtRS512.key\nopenssl rsa -in jwtRS512.key -pubout -outform PEM -out jwtRS512.key.pub\n```\n\nIf you want to re-build *.pb.go files\n```bash\nprotoc -I . ./*.proto --go_out=./ --go-grpc_out=./ --go-grpc_opt=paths=source_relative --experimental_allow_proto3_optional\n```\n\n### **Server example**\n\nWhole example for server-side is [here](cmd/server/main.go)\n\nHow to run server-side:\n```shell\ngo run .\n```\n\n### **Client example**\n\nWhole example for client-side is [here](cmd/client/main.go)\n\nHow to run client-side:\n```shell\ngo run .\n``` \n\n## **Support**\n\nIf you have troubles or questions please [open an issue](https://github.com/LdDl/grpc-jwt/issues/new).\nPRs are welcome!\n\n## **Dependencies**\n\n* github.com/golang-jwt/jwt - License is [MIT](https://github.com/golang-jwt/jwt/blob/master/LICENSE)\n* gRPC and protobuf for doing \"'client-server'\" application - [grpc](https://github.com/grpc/grpc-go). License is Apache-2.0\n\n## **License**\n\nYou can check it [here](https://github.com/LdDl/grpc-jwt/blob/master/LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddl%2Fgrpc-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flddl%2Fgrpc-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flddl%2Fgrpc-jwt/lists"}