Auth Gateway Demo

Bittensor and Ethereum wallet authentication with on-chain scope verification.

About

This gateway provides OAuth2-based authentication using Bittensor (sr25519) or Ethereum (EVM) wallet signatures. It verifies on-chain roles against Subtensor state and issues RS256 JWT access tokens with epoch-aligned expiry.

OIDC ID Token

Verify wallet identity via OpenID Connect. Proves you own a Bittensor address — no on-chain role checks.

OAuth2 Authorization Code

PKCE flow with on-chain scope verification. Add one or more scopes to check roles against Subtensor state.

Device Code Flow

For CLI tools and headless devices. Run this in your terminal:


      

It will request a device code, open your browser for wallet approval, and print your tokens. Requires curl and jq. Or open the verify page directly.

Endpoints