Skip to content

.Net: Does the OpenAPI plugins allow auth via token pass-through? #12573

Open
@tonifuc3m

Description

@tonifuc3m

I have seen examples of the authentication callbacks with OpenAPI plugins such as in issue 5773

However, I wonder if there is a way to define the plugin so that I could directly pass a bearer token at inference time as a parameter and have it added to the API request headers.

Currently, the auth callback requires an authentication callback to fetch the token and subsequently add it to the API request headers. In my specific application, the bearer token is validated prior to the agent call, meaning that I already have it available for use.

By enabling this feature, it would simplify the integration process for applications that have already handled token validation, allowing for more flexible and efficient API interactions.

Metadata

Metadata

Labels

.NETIssue or Pull requests regarding .NET codeopenapiIssues related to the OpenAPI function importer

Type

Projects

Status

Bug

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions