zulip/zerver/lib
Kevin Mehall 0a3a22cb3d Support authenticated upload URLs.
Trac #1734

This is implemented by bouncing uploaded file links through a view
that checks authentication and redirects to an expiring S3 URL.

This makes file uploads return a domain-relative URI. The client converts
this to an absolute URI when it's in the composebox, then back to relative
when it's submitted to the server.

We need the relative URI because the same message may be viewed across
{staging,www,zephyr}.zulip.com, which have different cookies.

(imported from commit 33acb2abaa3002325f389d5198fb20ee1b30f5fa)
2013-10-24 17:01:06 -04:00
..
bugdown Allow domain-relative and fragment links 2013-10-24 17:01:05 -04:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
actions.py Send users push notifications when they miss messages 2013-10-24 14:54:31 -04:00
alert_words.py Pre-fetch data from the DB and hand to markdown thread 2013-10-10 10:58:21 -04:00
avatar.py Extract get_avatar_url(). 2013-09-30 18:22:06 -04:00
bulk_create.py Supply a name when creating realms. 2013-10-17 13:47:51 -04:00
cache_helpers.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
cache.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
ccache.py Add webathena authentication button for Zephyr users. 2013-08-26 18:17:25 -04:00
context_managers.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
create_user.py New onboarding step: Set up an integration. 2013-08-08 17:23:27 -04:00
debug.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
event_queue.py Add all_public_streams parameter to register API. 2013-10-18 14:55:32 -04:00
html_diff.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
initial_password.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
logging_util.py Change Humbug => Zulip in name of error limiter module. 2013-08-07 10:00:07 -04:00
mandrill_client.py Add Mandrill decorators, credentials, actions 2013-10-10 19:32:21 -04:00
mention.py Pre-fetch data from the DB and hand to markdown thread 2013-10-10 10:58:21 -04:00
parallel.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
push_notifications.py Only load APNS cert if it exists 2013-10-24 15:55:42 -04:00
query.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
queue.py Move rabbitmq username into settings.py 2013-10-24 16:40:38 -04:00
rate_limiter.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
response.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
socket.py Deliver messages inside Tornado when running tests 2013-10-22 18:45:11 -04:00
statistics.py Add a basic statistics module to analyze active user engagement 2013-10-16 18:39:44 -04:00
timeout.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
timestamp.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tornado_ioloop_logging.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
unminify.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
upload.py Support authenticated upload URLs. 2013-10-24 17:01:06 -04:00
utils.py Move to a common random token generation function instead of several one-offs. 2013-08-09 14:59:26 -04:00