-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[reports-service] Obtain service-to-service token for anonymous requests
Summary: For reports service, we need to support both authenticated and anonymous requests. For authenticated requests, we can obtain the client token from the request context. For anonymous requests, we need to obtain the service-to-service token from the `AuthService`. Depends on D9281 Test Plan: Used Postman to call reports service. When provided `UserIdentity` token, it passed it through to Blob service. When not provided, it obtained the service-to-service token and passed it through to Blob service. When called with service-to-service token, it returned HTTP 403 - we don't expect reports service to be called by other services. Reviewers: michal, varun, jon Reviewed By: michal Subscribers: ashoat, tomek Differential Revision: https://phab.comm.dev/D9282
- Loading branch information
Showing
1 changed file
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters