I want to run the authenticated .net cloudfunction on .net aplication . I have applied all possible solution , That is I have access the bearer token using service account key .json and passed to HTTPclient header . I can access the token ,But still getting 401. ( Error: Response status code does not indicate success: 401 (Unauthorized) . I have given required permissions for the task . Also When I run same cloudfunction url and access token on postman , getting same 401 error