idiap/php-geremo/master/php/examples/pgsql.htaccess
## Authentication and Authorization
Satisfy All
AuthType Basic
AuthName "Authentication Required (press <Cancel> to proceed to registration)"
# Basic Authentication
# (required for proper interaction with 'mod_auth_pgsql')
AuthBasicProvider file
AuthBasicAuthoritative Off
AuthUserFile /dev/null
# PgSQL Authentication
# (requires 'mod_auth_mysql')
Auth_PG_authoritative On
Auth_PG_host localhost
Auth_PG_user geremo
Auth_PG_pwd ********
Auth_PG_database geremo
Auth_PG_pwd_table tb_GEREMO_Account
Auth_PG_uid_field username
Auth_PG_pwd_field password
Auth_PG_encrypted On
Auth_PG_hash_type MD5
# Authorization
Require valid-user
# Automatic redirection to registration backend
ErrorDocument 401 "<HTML><HEAD><META HTTP-EQUIV="REFRESH" CONTENT="0; url=https://registration-server.domain.tld/url-path/to/PHP-GEREMO/?login=https://protected-resource.domain.tld/"/></HEAD></HTML>"
On Github License
Files