Hi,
i am running Grafana behind Apache authproxy however i want my own login page instead of the alert that Apache throws when using the following configuration in Apache: http://docs.grafana.org/tutorials/authproxy/#apache-basicauth
For this, i used apache mod_auth_form like this:
Alias /secured/ ${SRVROOT}/htdocs/www/
<Directory "${SRVROOT}/htdocs/www/">
AuthFormProvider file
AuthType form
AuthName realm
Session On
SessionCookieName session path=/
require valid-user
# This is the login page
AuthFormLoginRequiredLocation /auth/login.html
# This is the file containing users login data
AuthUserFile ${SRVROOT}/htdocs/password/.htpasswd
</Directory>
#This is an 'open', unsecured, directory.
#place here your fance login html and css files.
Alias /auth/ ${SRVROOT}/htdocs/www-auth/
<Directory "${SRVROOT}/htdocs/www-auth/">
Require all granted
Session On
SessionCookieName session path=/
</Directory>
#Our login form should reference to this location
<Location /auth/dologin.html>
SetHandler form-login-handler
AuthFormLoginSuccessLocation /
AuthFormProvider file
AuthUserFile ${SRVROOT}/htdocs/password/.htpasswd
AuthType form
AuthName realm
Session On
SessionCookieName session path=/
</Location>
#Refer to /auth/logout to reset
<Location /auth/logout>
SetHandler form-logout-handler
AuthType form
AuthName realm
AuthFormLogoutLocation /auth/loggedout.html
Session On
SessionCookieName session path=/
</Location>
Now, i am able to use my own custom login page but somehow, i am not able to send the credentials to Grafana Auth proxy
Any help would be appreciated