在每次调用我的REST API时,我都要求客户端传递用户的facebook访问令牌,该令牌对用户进行身份验证.传递此令牌的最佳做法是什么?
也许作为HTTP问号背后的参数
GET /api/users/123/profile?access_token=pq8pgHWX95bLZCML
或者以某种方式在请求的标题中,类似于HTTP基本认证
GET
authentication rest http oauth-2.0 facebook-access-token
authentication ×1
facebook-access-token ×1
http ×1
oauth-2.0 ×1
rest ×1