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
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
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
dfe27567ae
Add an example for urlpath template func for Django engine
...
relative to #1656
2020-10-12 13:08:42 +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
2d62d49fdb
fix redis sessions database prefix
2020-10-10 13:18:33 +03:00
Gerasimos (Makis) Maropoulos
0069bccd75
add example for https://github.com/kataras/iris/issues/1653
2020-10-04 19:04:10 +03:00
Gerasimos (Makis) Maropoulos
cc7e3860f2
fix #1610 #1651 - read HISTORY.md
2020-10-04 16:50:21 +03:00
Gerasimos (Makis) Maropoulos
552539bed1
Add View Engine Benchmarks: https://github.com/kataras/iris/tree/master/_benchmarks/view
2020-10-01 16:06:16 +03:00
Gerasimos (Makis) Maropoulos
4065819688
New: i18n pluralization and variables support and more...
...
fixes : #1649 , #1648 , #1641 , #1650
relative to: #1597
2020-09-29 19:19:19 +03:00
Gerasimos (Makis) Maropoulos
c2f9e57b84
Merge pull request #1636 from kataras/pongo2-v4
...
Update pongo2 to version 4
2020-09-20 01:10:30 +03:00
Gerasimos (Makis) Maropoulos
31c616c886
update pongo2 to version 4
2020-09-20 01:09:16 +03:00
Gerasimos (Makis) Maropoulos
a04a6b5011
add accesslog+proxy example
2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
d1f32e723a
minor improvements to the kafka-api example
2020-09-18 13:58:31 +03:00
Gerasimos (Makis) Maropoulos
7fa2666f58
add accesslog+MVC example
2020-09-17 18:01:35 +03:00
Gerasimos (Makis) Maropoulos
ab7ee4a331
update pongo2 to version 4
2020-09-16 17:11:46 +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
64f95a59b4
fix ip_test (see prev commit)
2020-09-16 13:21:34 +03:00
Gerasimos (Makis) Maropoulos
373b8993ad
add viper configuration example and minor improvements - read HISTORY.md
2020-09-16 12:59:51 +03:00
Gerasimos (Makis) Maropoulos
3baee7db34
add Party.SetRoutesNoLog and mvc.Application.SetControllersNoLog as requested at #1630
2020-09-15 00:23:09 +03:00
Gerasimos (Makis) Maropoulos
0f7cf7f35c
example: i18n: nested .ini template key-values
2020-09-14 22:00:20 +03:00
Gerasimos (Makis) Maropoulos
44d5ebdc9c
Modify the SPA example for iris.PrefixDir
2020-09-14 18:36:04 +03:00
Gerasimos (Makis) Maropoulos
701713efdb
accesslog: add Truncate method as requested at #1631
2020-09-14 12:15:08 +03:00
Gerasimos (Makis) Maropoulos
54a095c23f
Add example for custom fast Accesslog Formatter
2020-09-14 02:35:01 +03:00
Gerasimos (Makis) Maropoulos
a917ef68fc
v12.2.0-alpha
2020-09-13 19:18:57 +03:00
Gerasimos (Makis) Maropoulos
7431fcc9cf
more tiny improvements
2020-09-13 14:28:05 +03:00
Gerasimos (Makis) Maropoulos
4845b77177
accesslog: improvements and new features
...
relative to: #1601 and #1624
2020-09-13 02:56:22 +03:00
Gerasimos (Makis) Maropoulos
7d5789c3de
add an accesslog simple example
2020-09-12 13:45:00 +03:00
Gerasimos (Makis) Maropoulos
2b342a5122
accesslog: add CSV format
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-12 12:34:59 +03:00
Gerasimos (Makis) Maropoulos
a30bbb61f7
accesslog: export the delimeter used on default formatter and improve its performance
...
relative to: #1601 and #1622
2020-09-11 23:22:18 +03:00
Gerasimos (Makis) Maropoulos
e63d1041d2
accesslog: add IP in builtin fields, change the format a bit. Default func: remove compression middleware, force-set debug log level, replace the old request logger with the accesslog one, use request id middlewareand keep recovery
2020-09-11 09:38:55 +03:00
Gerasimos (Makis) Maropoulos
0f5ec75d54
accesslog: Timestamp to unix milliseconds instead of seconds
...
relative to https://github.com/kataras/iris/issues/1601#issuecomment-690868305
2020-09-11 07:51:24 +03:00
Gerasimos (Makis) Maropoulos
16a794a245
acesslog new example: custom fields and custom template
2020-09-10 21:40:30 +03:00
Gerasimos (Makis) Maropoulos
2bb04823b0
recover, accesslog middlewares: give more information to the stored error, accesslog: make use of that information and introduce panic log levels
...
relative to: https://github.com/kataras/iris/issues/1601#issuecomment-690541789
2020-09-10 21:03:34 +03:00
Gerasimos (Makis) Maropoulos
facc94b725
accesslog: improvements
2020-09-10 19:41:30 +03:00
Gerasimos (Makis) Maropoulos
bfb7b19096
More localization template examples for https://github.com/kataras/iris/issues/1597#issuecomment-690186907
2020-09-10 17:52:25 +03:00
Gerasimos (Makis) Maropoulos
ae67987f55
accesslog: log error bodies and communicate with the recover middleware
2020-09-10 14:47:14 +03:00
Gerasimos (Makis) Maropoulos
cf0338d342
fix https://github.com/kataras/iris/issues/1621
2020-09-10 11:24:23 +03:00
Gerasimos (Makis) Maropoulos
333be428c4
use jet v5.0.2 (no breaking changes)
...
relative to: https://github.com/kataras/iris/pull/1616
2020-09-10 10:12:06 +03:00
Gerasimos (Makis) Maropoulos
59b8ddf5be
i18n: add the ability to register template funcs per locale
2020-09-10 06:22:53 +03:00
Gerasimos (Makis) Maropoulos
a1f7f57922
i18n: add 'tr' template function inside the translation files themselves
2020-09-10 05:57:49 +03:00
Gerasimos (Makis) Maropoulos
777ef0cd3e
i18n: expose the LoaderConfig from the main i18n instance and add an example
...
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
2020-09-10 05:17:03 +03:00
Gerasimos (Makis) Maropoulos
b77227a0f9
accesslog: NEW log broker and many more features
...
some fixes about context clone, fix response recorder concurrent access, fix reload views with only ParseTemplate and more
2020-09-09 14:43:26 +03:00
Gerasimos (Makis) Maropoulos
fb7627256a
minor
2020-09-09 08:39:23 +03:00
Gerasimos (Makis) Maropoulos
d17a888dc1
example: minor
2020-09-09 08:37:26 +03:00
Gerasimos (Makis) Maropoulos
61a9eff43e
accesslog middleware: more examples and usecase, e.g. log latency per handler and sessions values or authentication
...
relative to: #1601
2020-09-09 08:21:10 +03:00
Gerasimos (Makis) Maropoulos
d6867e1f9e
accesslog middleware: add total bytes received and sent
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-08 13:44:50 +03:00
Gerasimos (Makis) Maropoulos
a4996b90c8
Add a 'ParseTemplate' method on view engines to manually parse and add a template from a text
...
examples at: https://github.com/kataras/iris/tree/master/_examples/view/parse-template
relative to: https://github.com/kataras/iris/issues/1617
2020-09-08 07:55:33 +03:00
Gerasimos (Makis) Maropoulos
64038b09e3
add a ParseTemplate to the HTML view engine.
...
relative to: #1617
Wait for an answer from the issuer and if that's the expected behavior, do the same for the rest of the view engines
2020-09-08 01:58:02 +03:00
Gerasimos (Makis) Maropoulos
dac834cf11
new accesslog middleware: require the writer inside its constructor so we can 'detect' if we must force-lock a writer
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 18:04:35 +03:00
Gerasimos (Makis) Maropoulos
e96a009d3f
accesslog: LockWriter (to lock unprotected writers) and Clock (for testing)
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 16:31:43 +03:00
Gerasimos (Makis) Maropoulos
b063fbf3c8
minor (see previous commit)
2020-09-07 11:53:16 +03:00
Gerasimos (Makis) Maropoulos
07806ba270
more improvements to the new accesslog middleware: ability to add custom fields and change the order on the printable result
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 11:35:27 +03:00
Gerasimos (Makis) Maropoulos
4dca8f6088
improvements on the new accesslog middleware
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 06:12:45 +03:00
Gerasimos (Makis) Maropoulos
0ef064cc55
update golog dependency
2020-09-07 01:08:19 +03:00
Gerasimos (Makis) Maropoulos
618afd97f7
minor
2020-09-06 13:13:48 +03:00
Gerasimos (Makis) Maropoulos
26f515775b
examples: use the new golog.JSON, comment the manual way for general purpose knowedge that can be used to create a handler for any other custom format
2020-09-06 13:12:54 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c
add accesslog middleware (rel: #1601 )
2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
bf9f7617e2
examples: update go.mod (see previous commit)
2020-09-05 08:56:01 +03:00
Gerasimos (Makis) Maropoulos
e1f25eb098
Full support of the http.FileSystem on all view engines as requested at #1575
...
Also, the HandleDir accepts both string and http.FileSystem (interface{}) (like the view's fs)
2020-09-05 08:34:09 +03:00
Gerasimos (Makis) Maropoulos
d617a77209
add example for: #1614
2020-09-03 13:39:42 +03:00
Gerasimos (Makis) Maropoulos
8dc4fbdbbf
README
2020-09-02 13:44:19 +03:00
Gerasimos (Makis) Maropoulos
1a163eb78d
minor: README
2020-09-01 17:58:07 +03:00
Gerasimos (Makis) Maropoulos
fec6783a22
examples: write-rest: json: usage of the Secure, ASCII and UnescapeHTML fields
2020-09-01 13:28:21 +03:00
Gerasimos (Makis) Maropoulos
c7157f1c92
add bind checkboxes example
2020-09-01 11:39:57 +03:00
Gerasimos (Makis) Maropoulos
dbeb7bfb73
add Context.ReadHeaders
2020-08-31 21:28:13 +03:00
Gerasimos (Makis) Maropoulos
29084d062e
examples: minor. See prev commit
2020-08-31 20:46:25 +03:00
Gerasimos (Makis) Maropoulos
477f5e6f9b
add Context.ReadParams method
2020-08-31 20:30:01 +03:00
Gerasimos (Makis) Maropoulos
7f7d8df9c0
add mvc.Err builtin dependency to map any context/mvc response's.Err field on methods like HandleHTTPError
...
relative to: https://github.com/kataras/iris/issues/1606
2020-08-31 15:26:30 +03:00
Gerasimos (Makis) Maropoulos
f20e7f1ecc
examples: minor
2020-08-31 09:48:37 +03:00
Gerasimos (Makis) Maropoulos
8d99b46801
minor improvements
2020-08-31 09:40:27 +03:00
Gerasimos (Makis) Maropoulos
d0a27d2c08
add a simple URLParamSlice
...
I would love to change the current URLParams() to URLParams(name string) []string to match the PostValues(name string) []string, error but that would be a big breaking changes to many servers... so stick with it.
2020-08-31 05:07:55 +03:00
Gerasimos (Makis) Maropoulos
5f0a43cbc0
minor: sqlx example: indentation
2020-08-30 18:25:34 +03:00
Gerasimos (Makis) Maropoulos
b9f38be9ea
add sqlx example
2020-08-30 18:24:24 +03:00
Gerasimos (Makis) Maropoulos
77ce225c2f
minor: update xorm example based on chat comments (they moved repository)
2020-08-30 17:59:14 +03:00
Gerasimos (Makis) Maropoulos
f93c8b13bc
minor: oauth2 example updates
2020-08-30 17:51:53 +03:00
Gerasimos (Makis) Maropoulos
8b28ae14f8
minor: godoc
2020-08-30 17:18:04 +03:00
Gerasimos (Makis) Maropoulos
6ee69ffd1c
minor: fix Context.ViewData ignored when nil is passed as view data on Context.View method
2020-08-30 16:14:32 +03:00
Gerasimos (Makis) Maropoulos
600eb645df
minor: examples
2020-08-30 15:26:50 +03:00
Gerasimos (Makis) Maropoulos
a3279b8fa9
add a note on rewrite middleware for local URL modifications
2020-08-29 18:15:22 +03:00
Gerasimos (Makis) Maropoulos
00684f9d2e
add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested
2020-08-29 01:21:42 +03:00
Gerasimos (Makis) Maropoulos
4035ed308c
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem
2020-08-28 06:21:26 +03:00
Gerasimos (Makis) Maropoulos
a6ec94e1a6
overlap routing: and mvc: allow setting status code from a dependency or a middleware
2020-08-28 04:11:56 +03:00
Gerasimos (Makis) Maropoulos
9c56ed6261
examples: minor: update go mod master version
2020-08-26 19:37:14 +03:00
Gerasimos (Makis) Maropoulos
1780d97d44
update the subdomain redirect example using the rewrite middleware
2020-08-26 00:07:07 +03:00
Gerasimos (Makis) Maropoulos
5e82fa5b89
mvc: struct field and method dependency logs on debug level. Read HISTORY.md
...
- remove Party.GetReporter
- Read HISTORY.md
2020-08-24 21:44:29 +03:00
Gerasimos (Makis) Maropoulos
ef5685bf7e
add Iris + Serverless example link
2020-08-23 17:55:29 +03:00
Gerasimos (Makis) Maropoulos
8e049d77c9
HandleHTTPError MVC Method as requested at #1595 . Read HISTORY.md
...
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
2020-08-22 08:04:22 +03:00
Gerasimos (Makis) Maropoulos
a018ba9b0a
add example for #1601
2020-08-22 03:21:44 +03:00
Gerasimos (Makis) Maropoulos
e41e861c4c
update examples go mods
2020-08-21 20:53:45 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c
...
2020-08-21 20:48:41 +03:00
Gerasimos (Makis) Maropoulos
95c3c2a951
rewrite middleware: add a feature which supports users.json to users?format=json local route redirection
2020-08-21 18:09:21 +03:00
Gerasimos (Makis) Maropoulos
cb80e43ff0
rewrite middleware: add subdomain redirect example
2020-08-20 16:34:19 +03:00
Gerasimos (Makis) Maropoulos
ffae9c0d09
rewrite middleware: add PrimarySubdomain and simplify its usage example
2020-08-20 03:05:47 +03:00
Gerasimos (Makis) Maropoulos
12737c5b7f
implement a rewrite middleware
2020-08-19 22:40:17 +03:00
Gerasimos (Makis) Maropoulos
bdb94bbae2
request logger middleware: add graphical information about executed route's handlers
2020-08-19 01:24:36 +03:00
Gerasimos (Makis) Maropoulos
4228dd8ea4
add some MVC error handle examples
2020-08-18 23:14:11 +03:00
Gerasimos (Makis) Maropoulos
35ab1de212
add TraceRoute feature on request logger
2020-08-18 19:33:07 +03:00
Gerasimos (Makis) Maropoulos
a491cdf7ef
implement #1593 - Read HISTORY.md
...
updated example: https://github.com/kataras/iris/blob/master/_examples/i18n/main.go#L28-L50
2020-08-18 08:05:51 +03:00