From fa8ef7d7678d3187cf60a0a4b4a62a2e79bcba7b Mon Sep 17 00:00:00 2001 From: Jason Clifford Date: Mon, 15 Sep 2014 18:12:50 +0100 Subject: [PATCH] Fix regex and add X-AUTH and X_AUTH options --- lib/Catalyst/Authentication/Credential/Remote.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Catalyst/Authentication/Credential/Remote.pm b/lib/Catalyst/Authentication/Credential/Remote.pm index 5e20adc..3568416 100644 --- a/lib/Catalyst/Authentication/Credential/Remote.pm +++ b/lib/Catalyst/Authentication/Credential/Remote.pm @@ -71,7 +71,7 @@ sub authenticate { } } } - elsif ($self->source =~ /^(SSL_CLIENT_.*|CERT_*|AUTH_USER)$/) { + elsif ($self->source =~ /^(SSL_CLIENT_.*|CERT_.*|X-AUTH.*|X_AUTH.*|AUTH_USER)$/) { # if you are using 'exotic' webserver or if the user is # authenticated e.g via SSL certificate his name could be avaliable # in different variables