Skip to content

Authentication microservice that signs and verifies JWTs over gRPC. Acts as a centralized token authority for validating user identity across services. Built with Node.js using gRPC and JSON Web Tokens.

Notifications You must be signed in to change notification settings

VibuRoshin25/vibrox-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vibrox-auth

vibrox-auth is the authentication microservice of the Vibrox suite.
It provides secure JWT generation and validation via gRPC, acting as the identity gatekeeper for other services.


Features

  • gRPC API for:
    • Signing new JWTs
    • Validating existing tokens
  • Secret-based signing strategy (HS256 or configurable)
  • Lightweight and stateless — ideal for microservice auth

gRPC Setup

The gRPC service is defined using Protocol Buffers (token.proto).
To compile the .proto file for Node.js:

Compile Command

npx grpc_tools_node_protoc \
  --js_out=import_style=commonjs,binary:./proto \
  --grpc_out=grpc_js:./proto \
  -I ./proto ./proto/token.proto

This generates the necessary JS and gRPC client/server code inside the ./proto directory.

Make sure:

  • You’ve installed the necessary dependencies (see below)
  • Your .proto file is placed in ./proto/

Getting Started

Prerequisites

  • protoc (Protocol Buffers compiler)
  • grpc-tools and @grpc/grpc-js

Install Dependencies

npm install

Run Locally

npm run dev

OR

node index.js

About

Authentication microservice that signs and verifies JWTs over gRPC. Acts as a centralized token authority for validating user identity across services. Built with Node.js using gRPC and JSON Web Tokens.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy