Interface Context


@PolarisImmutable public interface Context
Additional context information for the authorization request.

Used for tracking and correlation purposes.

  • Method Summary

    Modifier and Type
    Method
    Description
    The realm identifier for this authorization request.
    A unique identifier for correlating this request with OPA server logs.
  • Method Details

    • requestId

      String requestId()
      A unique identifier for correlating this request with OPA server logs.
    • realm

      String realm()
      The realm identifier for this authorization request.

      This enables OPA policies to enforce isolation when the same principal names or resource names exist across different realms (multi-realm deployments using a shared OPA policy).