"securityDefinitions": {
"google_id_token": {
"authorizationUrl": "",
"flow": "implicit",
"type": "oauth2",
"x-google-issuer": "https://accounts.google.com",
"x-google-jwks_uri": "https://www.googleapis.com/oauth2/v1/certs",
"x-google-audiences": "https://fedor-dot-my-api.appspot.com"
}
}
"security": [
{
"google_id_token": []
}
]WARNING: my-v1-openapi.json: Operation 'get' in path '/my/v1/test/details': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/7bdd5428-e998-4f65-a31f-976d6eae53aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, it is possible. The warning is just a warning, not an error. You can operate without it.
On Tue, Aug 15, 2017 at 4:49 PM, Fedor Tyurin <fedor....@gmail.com> wrote:
I'm securing my Google Cloud Endpoints API using Google ID token. Here is the corresponding part of my OpenAPI spec deployed to Google Cloud Endpoints:"securityDefinitions": {
"google_id_token": {
"authorizationUrl": "",
"flow": "implicit",
"type": "oauth2",
"x-google-issuer": "https://accounts.google.com",
"x-google-jwks_uri": "https://www.googleapis.com/oauth2/v1/certs",
"x-google-audiences": "https://fedor-dot-my-api.appspot.com"
}
}
"security": [
{
"google_id_token": []
}
]Still I get warning that my API is not protected unless I add API key method into my security definition.WARNING: my-v1-openapi.json: Operation 'get' in path '/my/v1/test/details': Operation does not require an API key; callers may invoke the method without specifying an associated API-consuming project. To enable API key all the SecurityRequirement Objects (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-requirement-object) inside security definition must reference at least one SecurityDefinition of type : 'apiKey'.My API is used only in "service-to-service" scenario (API caller uses App Engine default service account as described in https://cloud.google.com/endpoints/docs/service-to-service-auth), so I don't see real benefit of passing API key when caller is already identified by the service account.Is it possible to skip API key check after Google ID token verification? I'm using App Engine standard environment.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/7bdd5428-e998-4f65-a31f-976d6eae53aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CABuQ5K_k1LpZVEia7J0oLEEDYjptccBZH8td%2B4oD4i%3D%3DRQ%3DdEw%40mail.gmail.com.
Yes, this is an odd message. We will investigate whether a change is appropriate.Thanks-DCDC
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/7bdd5428-e998-4f65-a31f-976d6eae53aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CABuQ5K_k1LpZVEia7J0oLEEDYjptccBZH8td%2B4oD4i%3D%3DRQ%3DdEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--DC
securityDefinitions:
google-signed-jwt:
authorizationUrl: ""
flow: "implicit"
type: "oauth2"
x-google-issuer: "[YOUR-SERVICE-ACCOUNT-EMAIL]"
x-google-jwks_uri: "https://www.googleapis.com/robot/v1/metadata/x509/[YOUR-SERVICE-ACCOUNT-EMAIL]"security:
- google-signed-jwt: []To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/7bdd5428-e998-4f65-a31f-976d6eae53aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/CABuQ5K_k1LpZVEia7J0oLEEDYjptccBZH8td%2B4oD4i%3D%3DRQ%3DdEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--DC--
You received this message because you are subscribed to the Google Groups "Google Cloud Endpoints" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-endpoints+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-endpoints/6d188729-44b1-423b-aee1-f39cf5bc263f%40googlegroups.com.