1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-10 14:30:40 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
88d07058a5 Fix the new repo address for casbin. 2017-05-19 22:19:31 +08:00
b2e7720fcd Add an authorization plugin that supports ACL, RBAC based on casbin. It requires the built-in HTTP basic authentication by default. 2017-05-04 14:02:21 +08:00
db67ffbb94 1.simplify reading and writing file code
2.add apiauth test
2017-02-10 09:35:23 +08:00
6d3042f5e5 RequestURI captures the signature field as well.
This in turn results is failure of signature based validation. So what is need is only "/api/resource/action". which is given by ctx.Input.URL()
2016-09-04 11:36:17 +05:30
40b41cc121 fix the misspell99 2016-03-11 12:14:18 +08:00
e3810b599d Fix regression caused by commit ad65479
Commit ad65479 will cause "Method Not Allow" in preflight response
when enable CORS plugin.

The root cause is that CORS plugin didn't generate http output after applied
commit ad65479, so the value of `ctx.ResponseWriter.Started` will be keep
`false`, and then later filter chains will be go on to run when CORS filter
finished.

This path will both fix "Method Not Allow" and the original bug
"multiple response.WriteHeader calls".

Signed-off-by: Yunkai Zhang <qiushu.zyk@taobao.com>
2016-01-26 23:27:26 +08:00
90d1349665 fix typo 2016-01-17 23:48:17 +08:00
48fd9675ad Refactoring: Move dev & prod runmodes to const 2015-12-29 21:32:37 +03:00
083c155079 cors test benchmark doesn't use b.N 2015-12-19 10:29:12 +08:00
d1bba02958 refact beego config 2015-12-09 23:35:04 +08:00
ea2039c1dc golint plugins 2015-09-12 22:03:45 +08:00
ad6547936e fix the http: multiple response.WriteHeader calls 2015-08-28 23:08:00 +08:00
647e6ae1c4 Added JWT plugin 2014-11-24 23:21:03 +08:00
93ca11f83d Return the response directly if it's a options PreflightHeader request 2014-11-21 01:35:30 +08:00
c83a2a0925 modify the comments 2014-08-28 10:21:32 +08:00
50a21d60c1 apiauth add more comments & improve 2014-08-28 10:05:02 +08:00
5a087b28d2 aws api auth plugins 2014-08-28 00:25:50 +08:00
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
cd9e614a71 plugins: basic auth & cors 2014-08-15 17:15:20 +08:00
fefd8ddb5b beego: update licence& fix 2014-07-03 23:40:21 +08:00
0f170a80da update the comments fix 2014-06-25 10:39:37 +08:00
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
d49984d47d Fix basic auth plugin example.
NewBasicAuthenticator requires passing a second argument for Realm.
2014-03-12 15:56:05 +08:00
a184c23603 basic auth for plugin 2014-02-10 11:31:54 +08:00