Token Introspector

The TokenIntrospector resource in Aidbox is used to validate tokens issued by external authentication systems. It enables Aidbox to integrate with various identity providers and authentication servers by supporting different token validation methods.

Overview

When users authenticate with an external system and receive a token, Aidbox can use TokenIntrospector to validate these tokens and extract identity information. This allows for secure integration between Aidbox and external authentication systems.

Supported Token Types

Aidbox TokenIntrospector supports two main types of tokens:

1. JWT Tokens — JSON Web Tokens (JWTs) are self-contained tokens that include claims and can be verified using a signature.

2. Opaque Tokens — Non-transparent tokens that require validation against an external introspection endpoint.

TokenIntrospector Schema

See TokenIntrospector schema.

Token Validation Process

  1. Client sends a request to Aidbox with a Bearer token

  2. Aidbox identifies the token type

  3. Based on the token type:

    • For JWT: Aidbox validates the signature and claims

    • For opaque: Aidbox sends the token to the introspection endpoint

  4. If valid, Aidbox applies the relevant AccessPolicy

  5. If the policy allows access, the request proceeds

See also

Set up token introspection tutorial

Last updated

Was this helpful?