Search code examples
google-app-enginegoogle-cloud-endpointsendpoints-proto-datastore

Login with my organization Google account with Google Cloud Endpoints


Is it possible to limit my endpoints api to my organization's Google accounts?

P.D.

I do not have access to the Administrator account.

Thanks


Solution

  • You could protect your API method by injecting the User object. Now, when the API Method is invoked, you can check for the User object and get the Email Addresses and Authenticating Domain to perform your check and move ahead in your API Method.