Skip to content

πŸ” TokenBridge is a lightweight Go library that securely bridges identity systems. It allows you to verify ID tokens, exchange them for signed access tokens, and serve public keys via JWKS for token validation.

License

Notifications You must be signed in to change notification settings

hupe1980/tokenbridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ” TokenBridge

Build Status Go Reference goreportcard License: MIT

TokenBridge is a lightweight and flexible Go library designed to bridge identity systems securely. It enables you to verify ID tokens, exchange them for signed access tokens, and serve JSON Web Key Sets (JWKS) for downstream token validation.


✨ Features

  • βœ… ID Token Verification
    Validate OIDC-issued ID tokens using flexible verification options.

  • πŸ” Token Exchange
    Transform ID tokens into signed access tokens with optional custom claims.

  • πŸ”‘ JWKS Generation
    Serve JSON Web Key Sets to allow downstream systems to verify your tokens.


🧭 Architecture

Here's how TokenBridge works in a typical token exchange flow:

+-------------------+       +-------------------+       +-------------------+
|                   |       |                   |       |                   |
|      Client       |       |   TokenBridge     |       |   OIDC Provider   |
|                   |       |                   |       |                   |
+-------------------+       +-------------------+       +-------------------+
          |                           |                           |
          |   1. Sends ID Token       |                           |
          +-------------------------->|                           |
          |                           |                           |
          |                           |   2. Verifies ID Token    |
          |                           +-------------------------->|
          |                           |                           |
          |   3. Returns Access Token |                           |
          +<--------------------------+                           |
          |                           |                           |

🧩 Components

πŸ‘€ Client

  • Sends an ID token to TokenBridge for verification.
  • Receives a newly issued access token.

πŸ” TokenBridge

  • Verifies ID tokens using an OIDC provider.
  • Issues signed access tokens with support for custom claims.
  • Serves a JWKS endpoint for public key distribution.

πŸͺͺ OIDC Provider

  • Issues standards-compliant ID tokens.
  • Works with any OIDC-compatible identity provider (e.g., Auth0, Google, Okta).

πŸš€ Related Projects

Looking to integrate or extend TokenBridge? Check out these related projects:

🀝 Contributing

We welcome contributions! Feel free to open issues, share feedback, or submit pull requests to improve TokenBridge.

πŸ“„ License

TokenBridge is licensed under the MIT License.

About

πŸ” TokenBridge is a lightweight Go library that securely bridges identity systems. It allows you to verify ID tokens, exchange them for signed access tokens, and serve public keys via JWKS for token validation.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published