Skip to content

Attach bearer token via DelegatingHandler on the AuthenticatedAPI client #558

Description

@kauereinbold

Follow-up from #544.

The AuthenticatedAPI and UnauthenticatedAPI named HTTP clients currently have identical configuration; the bearer token is applied manually per request via AuthTokenProviderExtensions.ApplyToken in each service method (DetectionService.UpdateRequestAsync, TagService update/delete). A DelegatingHandler registered on the AuthenticatedAPI client could attach the token automatically, removing the per-callsite calls and making it impossible to forget the token on a new authenticated endpoint.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmoderator portalIssues pertaining to ModeratorPortal at https://aifororcas.azurewebsites.net

    Type

    No type

    Projects

    • Status
      backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions