File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,14 @@ PS 考虑到存在[夏时制](https://en.wikipedia.org/wiki/Daylight_saving_time
254254
255255## 身份验证
256256
257- 部分接口需要通过某种身份验证方式才能请求成功(这些接口会在文档中标注出来),身份验证支持 [HTTP 基本认证](http://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81),也支持通过登录接口使用账号密码换取 token ,在请求接口时使用 `Authorization: token #{token}` 头标或者 `token` 参数的值的方式进行验证。
257+ 部分接口需要通过某种身份验证方式才能请求成功(这些接口**应该**在文档中标注出来),身份验证支持两种方式:
258+
259+ * 支持 [HTTP 基本认证](http://zh.wikipedia.org/wiki/HTTP%E5%9F%BA%E6%9C%AC%E8%AE%A4%E8%AF%81)
260+ * 支持通过登录接口使用账号密码获取 JSON Web Token ,在请求接口时使用 `Authorization: Bearer #{token}` 头标或者 `token` 参数的值的方式进行验证。
261+ * [JSON Web Token 规范](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-25)
262+ * [Json Web Tokens: Introduction](http://angular-tips.com/blog/2014/05/json-web-tokens-introduction/)
263+ * [Json Web Tokens: Examples](http://angular-tips.com/blog/2014/05/json-web-tokens-examples/)
264+ * [Cookies vs Tokens. Getting auth right with Angular.JS](https://auth0.com/blog/2014/01/07/angularjs-authentication-with-cookies-vs-token/)
258265
259266## 超文本驱动和资源发现
260267
You can’t perform that action at this time.
0 commit comments