1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-18 12:20:49 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
Daniel Ramirez Grave de Peralta
914bbfd710
Update apiauth.go fixed infinite recursive call 2019-03-14 09:14:12 -04:00
Joseph Edwards Van Riper III
ddcd28e67f
APIBaiscAuth is misspelling of APIBasicAuth
Corrected APIBaiscAuth to APIBasicAuth.  Maintained old name (forwarding to new one) for those still using the previous API function name.
2019-02-12 13:00:11 -05:00
Yang Luo
88d07058a5 Fix the new repo address for casbin. 2017-05-19 22:19:31 +08:00
Yang Luo
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
liming
db67ffbb94 1.simplify reading and writing file code
2.add apiauth test
2017-02-10 09:35:23 +08:00
kbynd
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
astaxie
40b41cc121 fix the misspell99 2016-03-11 12:14:18 +08:00
Yunkai Zhang
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
astaxie
90d1349665 fix typo 2016-01-17 23:48:17 +08:00
Vitaly Velikodny
48fd9675ad Refactoring: Move dev & prod runmodes to const 2015-12-29 21:32:37 +03:00
nkbai
083c155079 cors test benchmark doesn't use b.N 2015-12-19 10:29:12 +08:00
astaxie
d1bba02958 refact beego config 2015-12-09 23:35:04 +08:00
astaxie
ea2039c1dc golint plugins 2015-09-12 22:03:45 +08:00
astaxie
ad6547936e fix the http: multiple response.WriteHeader calls 2015-08-28 23:08:00 +08:00
Lei Cao
647e6ae1c4 Added JWT plugin 2014-11-24 23:21:03 +08:00
Lei Cao
93ca11f83d Return the response directly if it's a options PreflightHeader request 2014-11-21 01:35:30 +08:00
astaxie
c83a2a0925 modify the comments 2014-08-28 10:21:32 +08:00
astaxie
50a21d60c1 apiauth add more comments & improve 2014-08-28 10:05:02 +08:00
astaxie
5a087b28d2 aws api auth plugins 2014-08-28 00:25:50 +08:00
astaxie
a144769515 update the documents & comments 2014-08-18 16:41:43 +08:00
astaxie
cd9e614a71 plugins: basic auth & cors 2014-08-15 17:15:20 +08:00
astaxie
fefd8ddb5b beego: update licence& fix #669 2014-07-03 23:40:21 +08:00
astaxie
0f170a80da update the comments fix #658 2014-06-25 10:39:37 +08:00
astaxie
c188cbbcb4 update all files License 2014-05-17 02:26:50 +08:00
Kirill Zdornyy
d49984d47d Fix basic auth plugin example.
NewBasicAuthenticator requires passing a second argument for Realm.
2014-03-12 15:56:05 +08:00
asta.xie
a184c23603 basic auth for plugin 2014-02-10 11:31:54 +08:00