简体   繁体   English

如何向GAE REST服务器授权请求?

[英]How do I authorise requests to my GAE REST server?

What's the best technology for to authorise request made by my app/website to my server? 授权我的应用程序/网站向我的服务器发出请求的最佳技术是什么?

I want only my website and app to be able to communicate with my GAE server. 我只希望我的网站和应用程序能够与我的GAE服务器通信。

Are you familiar with the GAE Endpoints service? 您熟悉GAE端点服务吗? IMO, the two big advantages of it are that it simplifies: IMO,它的两大优势在于它简化了:

  • the provision of web services to multiple clients type, including Android, web, and iOS, 为多种客户端类型提供Web服务,包括Android,Web和iOS,
  • the use of OATH2 for client authorization (either Google User authorization, or just app authorization). 使用OATH2进行客户授权(Google用户授权或仅授权应用)。

I mention it because both of these seem to apply to your situation. 我提到它是因为这些似乎都适用于你的情况。

Note though that endpoints is still in preview, and they really mean it. 请注意,端点仍处于预览状态,它们的确意味着它。 It was released more then a year ago and it has been a bumpy road. 它是在一年多前发布的,它是一条坎坷的道路。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM