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.
Follow-up from #544.
The
AuthenticatedAPIandUnauthenticatedAPInamed HTTP clients currently have identical configuration; the bearer token is applied manually per request viaAuthTokenProviderExtensions.ApplyTokenin each service method (DetectionService.UpdateRequestAsync,TagServiceupdate/delete). ADelegatingHandlerregistered on theAuthenticatedAPIclient could attach the token automatically, removing the per-callsite calls and making it impossible to forget the token on a new authenticated endpoint.