I'm developing an App for the Google Apps Marketplace with Java and Appengine.
I need to know if the user that is making the request to my app is logged-in with a Google account. And if is the case and the user is logged in, run the app using OAuth2 with "Service Account" to make the api calls. One solution that occurred to me is to use:
<security-constraint>
<web-resource-collection>
<web-resource-name>any</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
In the "web.xml" file.
However, the Google Apps Marketplace managers have told me that I can not use this system. Nor I can use OAuth2 flow (Client ID for web application), because the user don't need to accept the scopes if the admin has been accepted this scopes previously.
What alternative would you use? Why I can not use the ""?
Thanks in advance and regards.