I am using my custom auth flow (auth using facebook) and want to completely disable authentication provided by Google Cloud Endpoints.
When I set it using the HTTP Authorization header(Bearer ) it invokes some framework method automatically, which shows following entries in logs-
D 2015-03-21 20:41:22.622 Checking for id_token.
D 2015-03-21 20:41:22.622 id_token verification failed: Token is not an id_token (Wrong number of segments)
D 2015-03-21 20:41:22.623 Checking for oauth token.
D 2015-03-21 20:41:22.627 Oauth framework user didn't match oauth token user.
I think its calling google apis and checking the oauth token everytime.
I tried setting auth_level=endpoints.AUTH_LEVEL.REQUIRED but the warning is still there.
Finally, I went through the source code to debug this and set env variable ENDPOINTS_USE_OAUTH_SCOPE to some random value to prevent it from checking with google api's.
Is there a better way to handle this?
[EDIT] This is for AppEngine Python.