Java – endpoint with OAuth: get the current ClientID
•
Java
I just started using endpoints in Google App Engine, and everything seems to work well My API rejects non whitelist client IDs and allows a few whitelists
One thing I can't seem to work right now is to get the client ID that calls my endpoint
It seems insignificant, but I can't seem to find where to look
Solution
In the python library, the client ID is part of the user object You can return com. From endpoint authentication google. appengine. api. users. The user instance gets the same information
reference resources: https://cloud.google.com/appengine/docs/java/endpoints/getstarted/backend/code_walkthrough#oauth_protecting_a_method
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码