kore/src
Joris Vink 73be741bfd Allow authenticators on filemaps.
This commit introduces the ability to add authenticators to filemaps.
Just like in normal routes, the authenticators will be resolved first
before allowing access to the filemap entries.

Configuration wise, the authenticator is an optional value after the
filemap config directive:

	filemap / webroot myauth

In the Python API you can now pass the authenticator for a filemap entry
but turning the value of the filemap into a tuple with the first entry
being the path and the second being the auth dict:

	AUTH AUTH={
	    "type": "cookie",
	    "value": "cookiename",
	    "redirect": "/auth/",
	    "verify": verify_cookie
	}

	domain.filemaps({
	    "/css/": "webroot/css",
	    "/secret/": ("webroot/secret", AUTH)
	})
2022-08-10 10:13:01 +02:00
..
accesslog.c Change logic for http_version a bit. 2022-02-20 21:19:44 +01:00
acme.c Initial work splitting OpenSSL code away. 2022-02-17 13:45:28 +01:00
auth.c Remove another dead assignment. 2021-09-17 19:53:31 +02:00
bsd.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
buf.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
cli.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
config.c Allow authenticators on filemaps. 2022-08-10 10:13:01 +02:00
connection.c Fix handling kore_tls_connection_accept() return codes. 2022-03-21 12:23:38 +01:00
curl.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
domain.c Initial work splitting OpenSSL code away. 2022-02-17 13:45:28 +01:00
filemap.c Allow authenticators on filemaps. 2022-08-10 10:13:01 +02:00
fileref.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
http.c rename ssl prefixed things to tls. 2022-02-18 10:20:28 +01:00
json.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
jsonrpc.c Stop hardcoding HTTP error codes in http_response() calls. 2021-05-02 16:03:18 +02:00
keymgr_openssl.c Define KORE_PRIVATE_KEY per TLS backend. 2022-02-18 10:50:17 +01:00
kore.c Differentiate between normal shutdown and fatal. 2022-08-08 11:02:27 +02:00
linux.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
log.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
mem.c fix format specifier, previous commit touched a bit too much. 2022-03-15 13:47:35 +01:00
module.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
msg.c Differentiate between normal shutdown and fatal. 2022-08-08 11:02:27 +02:00
net.c Initial work splitting OpenSSL code away. 2022-02-17 13:45:28 +01:00
pgsql.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
pool.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
python.c Allow authenticators on filemaps. 2022-08-10 10:13:01 +02:00
route.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
runtime.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
seccomp.c wrap 2 more syscalls in ifdefs. 2022-02-17 14:46:33 +01:00
sha1.c add kore_mem_zero(). 2022-02-18 11:13:01 +01:00
sha2.c add kore_mem_zero(). 2022-02-18 11:13:01 +01:00
tasks.c Allow listening of tls/notls ports at the same time. 2019-09-27 12:27:04 +02:00
timer.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
tls_none.c Define KORE_PRIVATE_KEY per TLS backend. 2022-02-18 10:50:17 +01:00
tls_openssl.c Fix handling kore_tls_connection_accept() return codes. 2022-03-21 12:23:38 +01:00
utils.c Differentiate between normal shutdown and fatal. 2022-08-08 11:02:27 +02:00
validator.c i forgot, it's 2022. 2022-01-31 22:02:06 +01:00
websocket.c Initial work splitting OpenSSL code away. 2022-02-17 13:45:28 +01:00
worker.c Differentiate between normal shutdown and fatal. 2022-08-08 11:02:27 +02:00