I deployed a jar file in a compute engine
, this jar file trying to access a servlet
deployed in app-engine
with this details:
servlet path: https:/pathToAppEngine/tasks/sendMail
and its secured by this:
<security-constraint>
<web-resource-collection>
<web-resource-name>my-tasks</web-resource-name>
<url-pattern>/tasks/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
And the compute engine is linked to a service account
with owner
privileges And both app-engine and compute engine instance are within the same google project
as a result, whenever this jar file (in compute engine) try to access this servlet (in app engine) it shows the google login page.
And if I removed the security from this servlet then it can be accessed easily from that jar file
so how can I authorize this compute engine to access this secured servlet in app-engine plz?