mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 04:44:48 -04:00
Temporarily disable feed authentication
This commit is contained in:
parent
05e0f77b45
commit
4268c6f91c
1 changed files with 17 additions and 17 deletions
|
@ -286,25 +286,25 @@ Define webroot /standardebooks.org/web
|
||||||
RewriteRule ^/bulk-downloads/([^/\.]+)$ /bulk-downloads/collection.php?name=$1
|
RewriteRule ^/bulk-downloads/([^/\.]+)$ /bulk-downloads/collection.php?name=$1
|
||||||
|
|
||||||
# Enable mod_authn_dbd
|
# Enable mod_authn_dbd
|
||||||
DBDriver mysql
|
# DBDriver mysql
|
||||||
DBDParams "dbname=se user=www-data"
|
# DBDParams "dbname=se user=www-data"
|
||||||
# HTTP Basic Auth configuration for /feeds
|
# # HTTP Basic Auth configuration for /feeds
|
||||||
<DirectoryMatch "^${webroot}/www/feeds/(opds|rss|atom)">
|
# <DirectoryMatch "^${webroot}/www/feeds/(opds|rss|atom)">
|
||||||
AuthType Basic
|
# AuthType Basic
|
||||||
AuthName "Enter your Patrons Circle email address and leave the password empty."
|
# AuthName "Enter your Patrons Circle email address and leave the password empty."
|
||||||
Require valid-user
|
# Require valid-user
|
||||||
|
|
||||||
# Credentials caching to prevent slamming the DB. socache must be ahead of dbd
|
# # Credentials caching to prevent slamming the DB. socache must be ahead of dbd
|
||||||
AuthBasicProvider socache dbd
|
# AuthBasicProvider socache dbd
|
||||||
AuthnCacheProvideFor dbd
|
# AuthnCacheProvideFor dbd
|
||||||
AuthnCacheContext ${domain}
|
# AuthnCacheContext ${domain}
|
||||||
|
|
||||||
# mod_authn_dbd SQL query to authenticate a user
|
# # mod_authn_dbd SQL query to authenticate a user
|
||||||
# The hash is simply the hash of a blank password. We're only interested in the username/API key.
|
# # The hash is simply the hash of a blank password. We're only interested in the username/API key.
|
||||||
# We have to do this tortured query instead of a cleaner one, because the AuthDBDUserPWQuery
|
# # We have to do this tortured query instead of a cleaner one, because the AuthDBDUserPWQuery
|
||||||
# function will only replace %s EXACTLY ONCE. We cannot have more than one %s in the query string.
|
# # function will only replace %s EXACTLY ONCE. We cannot have more than one %s in the query string.
|
||||||
AuthDBDUserPWQuery "select '$apr1$13q1pnGf$vQnIj94BXP1EPdL/4ISba.' from Users u inner join Benefits b using (UserId) where %s in (u.Email, u.Uuid) and b.CanAccessFeeds = true limit 1"
|
# AuthDBDUserPWQuery "select '$apr1$13q1pnGf$vQnIj94BXP1EPdL/4ISba.' from Users u inner join Benefits b using (UserId) where %s in (u.Email, u.Uuid) and b.CanAccessFeeds = true limit 1"
|
||||||
</DirectoryMatch>
|
# </DirectoryMatch>
|
||||||
|
|
||||||
# Specific config for /bulk-downloads
|
# Specific config for /bulk-downloads
|
||||||
<DirectoryMatch "${webroot}/www/bulk-downloads">
|
<DirectoryMatch "${webroot}/www/bulk-downloads">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue