What I have:
A google cloud function and an HTTP trigger like : https://us-central1-{project_name}.cloudfunctions.net/{function_name}.
Currently, I have set unauthenticated access by selecting allUsers in the permissions of the cloud function.
A web application that needs to call this cloud function.
What I want:
Implement authentication for this function.
Any step by step guide to implement Oauth 2 authentication for a google cloud function (without the need to add any code in the cloud function end) will be highly appreciated.