@microsoft/opentelemetry
    Preparing search index...

    Interface AuthorizationLike

    Minimal authorization shape required by AgenticTokenCache.

    Mirrors the Authorization interface from @microsoft/agents-hosting so the cache can be used without a direct dependency on that package.

    interface AuthorizationLike {
        exchangeToken(
            turnContext: TurnContextLike,
            authHandlerName: string,
            options: { scopes: string[] },
        ): Promise<{ token?: string } | undefined>;
    }
    Index
    • Exchanges the current turn's credentials for an access token.

      Parameters

      • turnContext: TurnContextLike

        The current turn context.

      • authHandlerName: string

        Name of the configured auth handler to use.

      • options: { scopes: string[] }

        Token-exchange options, including the requested scopes.

      Returns Promise<{ token?: string } | undefined>

      The exchanged token, or undefined when no token is available.