Commit Graph

179 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
d2f24fab90
fix an issue on accesslog when response and request recorder and minifier were enabled 2023-04-19 23:56:55 +03:00
Phước Trung
65bb98f055
Upgrade Redis client to v9 (#2102)
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
Co-authored-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
2023-03-17 11:03:18 +02:00
Gerasimos (Makis) Maropoulos
a559a2928e
add remoteip and sitekey optional fields to hcaptcha middleware
as suggested on the kataras/hcaptcha package
2022-09-19 14:39:23 +03:00
Gerasimos (Makis) Maropoulos
ef2643b046
replace ioutil with io package and other minor improvements 2022-06-17 22:03:18 +03:00
Gerasimos (Makis) Maropoulos
73dfabf412
modrevision:minor 2022-04-10 01:25:19 +03:00
Gerasimos (Makis) Maropoulos
4dfd4c53d3
new minor features 2022-04-09 14:51:34 +03:00
lrita
d058d999b8 fix the issue of accesslog closing the default writer os.Stdout by SetOutput() method 2022-03-18 18:11:19 +08:00
Gerasimos (Makis) Maropoulos
5a7485124c
add a query helper on x/sqlx sub-package and fix the example for basicauth 2022-03-08 19:45:25 +02:00
Gerasimos (Makis) Maropoulos
f397c30caf
cors: add vary header
looking for a CORS middleware with more options? Take a look at iris-contrib/middleware/cors instead
2022-03-03 02:31:01 +02:00
Gerasimos (Makis) Maropoulos
5eb49a8861
minor: docs: indentation 2022-03-01 14:02:07 +02:00
Gerasimos (Makis) Maropoulos
481332090e
register cors middleware on iris.Default() function 2022-03-01 14:00:54 +02:00
Gerasimos (Makis) Maropoulos
b15d75753c
minor improvements to the cors simple builtin middleware 2022-03-01 13:53:46 +02:00
Gerasimos (Makis) Maropoulos
61a3190644
minor improvements to the builtin, simple cors middleware 2022-02-28 21:58:23 +02:00
Gerasimos (Makis) Maropoulos
3218294968
add x/cors#AllowOrigin, AllowOriginMatcherFunc, AllowOriginRegex and AllowOrigins method helpers for the new, simple and fast builtin middleware 2022-02-28 21:28:51 +02:00
Gerasimos (Makis) Maropoulos
70a73ef80b
publish v12.2.0-alpha7 version 2022-02-25 20:17:02 +02:00
Gerasimos (Makis) Maropoulos
41026c9209
publish v12.2.0-alpha6 2022-02-18 22:19:33 +02:00
Gerasimos (Makis) Maropoulos
d6cfe3fe5b
new Timeout, TimeoutMessage configuration fields and apps.OnApplicationRegistered listener 2021-12-09 14:44:03 +02:00
Gerasimos (Makis) Maropoulos
bf54d33a3e
add new ':email' path parameter and revert the jsoniter removal 2021-10-13 16:22:22 +03:00
Gerasimos (Makis) Maropoulos
11c1301cda
minor 2021-09-14 21:50:39 +03:00
Gerasimos (Makis) Maropoulos
574db973d0
improve Context.Proceed
Now this is possible: ok := (Handler1) && ctx.Proceed(Handler2)) || ctx.Proceed(Handler3)
2021-06-15 00:36:28 +03:00
Gerasimos (Makis) Maropoulos
7272c76847
minor test fix 2021-03-04 18:10:13 +02:00
Gerasimos (Makis) Maropoulos
8aedf6bc32
:) 2021-01-09 05:41:20 +02:00
Gerasimos (Makis) Maropoulos
b409f7807e
New feature: versioning.Aliases
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
2021-01-06 01:52:39 +02:00
Gerasimos (Makis) Maropoulos
a2d0b86815
accesslog: add FileUnbuffered helper 2020-12-29 16:38:24 +02:00
Gerasimos (Makis) Maropoulos
763300b566
basicauth: add session for current login tries (if MaxTries > 0) and log debug error handler 2020-11-25 04:20:56 +02:00
Gerasimos (Makis) Maropoulos
11e21150d0
more features and fix database/mysql:jwt example 2020-11-24 14:58:02 +02:00
Gerasimos (Makis) Maropoulos
4d857ac53f
New basic auth middleware and GetRaw on User (godocs missing) 2020-11-21 12:04:37 +02:00
Gerasimos (Makis) Maropoulos
f049c51336
last touch 2020-11-06 11:36:57 +02:00
Gerasimos (Makis) Maropoulos
579c3878f0
add a jwt tutorial + go client 2020-11-04 21:12:13 +02:00
Gerasimos (Makis) Maropoulos
ed38047385
add an example for sessions + view data as requested 2020-11-02 18:46:38 +02:00
Gerasimos (Makis) Maropoulos
f1ebddb6d9
jwt: add redis blocklist 2020-11-02 06:31:28 +02:00
Gerasimos (Makis) Maropoulos
836fb18c57
add some godoc to jwt 2020-11-01 04:23:36 +02:00
Gerasimos (Makis) Maropoulos
3d59d19de6
add context partial user helper and accept a generic interface on SetUser - the same method now returns an error if the given value does not complete at least one method of the User interface 2020-10-31 15:47:28 +02:00
Gerasimos (Makis) Maropoulos
8eea0296a7
As noticed in my previous commit, the existing jwt libraries added a lot of performance cost between jwt-featured requests and simple requests. That's why a new custom JWT parser was created. This commit adds our custom jwt parser as the underline token signer and verifier 2020-10-30 22:12:16 +02:00
Gerasimos (Makis) Maropoulos
d517f36a29
minor commit. But I am not happy with the jwt implementations for Go...they seem to produce enough performance cost, will try to make a jwt parser by myself and see the difference 2020-10-19 10:05:48 +03:00
Gerasimos (Makis) Maropoulos
02bfc83f2a
jwt: make the Blocklist an interface, so end-developers can implement their own storage (e.g. redis) 2020-10-18 21:51:25 +03:00
Gerasimos (Makis) Maropoulos
3db77684ec
add a very simple example on JWT and move the previous to the 'overview' sub folder 2020-10-18 20:31:58 +03:00
Gerasimos (Makis) Maropoulos
0d73b63b28
jwt: add the (last) helper: VerifyRefreshToken 2020-10-18 17:15:29 +03:00
Gerasimos (Makis) Maropoulos
09923183e8
add an extra security layer on JWT and able to separate access from refresh tokens without any end-developer action on the claims payload (e.g. set a different issuer) 2020-10-18 14:42:19 +03:00
Gerasimos (Makis) Maropoulos
a412ee55ae
jwt: add VerifyJSON and ReadJSON helpers 2020-10-17 15:22:42 +03:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and  add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
b816156e77
accesslog: new HumanTime option as requested at #1661 2020-10-16 09:53:22 +03:00
Gerasimos (Makis) Maropoulos
8e51a296b9
Add Context.SetUser and Context.User methods
relative to: https://github.com/iris-contrib/middleware/issues/63
2020-10-12 15:52:53 +03:00
Gerasimos (Makis) Maropoulos
f6905a3f79
New Context.SetLogoutFunc/Logout and SetFunc/CallFunc methods
Read HISTORY.md
2020-10-12 02:07:04 +03:00
Gerasimos (Makis) Maropoulos
a04a6b5011
add accesslog+proxy example 2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
d5a179cc45
fix UseRouter not respected by iris-cli live reload 2020-09-18 02:08:27 +03:00
Gerasimos (Makis) Maropoulos
7fa2666f58
add accesslog+MVC example 2020-09-17 18:01:35 +03:00
Gerasimos (Makis) Maropoulos
85b5453ae1
add auth/jwt/refresh-token example as requested at #1635 2020-09-16 13:57:11 +03:00
Gerasimos (Makis) Maropoulos
076f806925
accesslog: SetOutput change at servetime and wait(no lock) until prev is closed as requested at #1631 2020-09-14 17:35:17 +03:00
Gerasimos (Makis) Maropoulos
d00a4b33f1
accesslog: experimental SetOutput at serve-time as requested at #1631 2020-09-14 13:37:42 +03:00