I have deployed my cloud endpoints on app engine using java. Now I need to restrict access to these APIs to only those web clients who are logged in to my web application using an openid.
I will create my own identity provider and I want to access GAE cloud endpoints using this identity of user.
So, I need a mechanism to issue a token and then needs my GAE cloud endpoint to verify that token and only then provide the API service to that client.
So far I have created Cloud endpoints and they are accessible publicly which is the issue.
To summarize, I have following questions:
Can I restrict access to my GAE cloud endpoints to only a few web clients who will be accessing these APIs using a client side web application?
If yes, How will I provide surety to my endpoints that the request is coming from a valid user of the web application that I have developed using my own Identity provider?