Authentication for direct file access

Maybe these links are helpful: