Varnish Variable for Decoded req.http.Authorization
guillaume at varnish-software.com
Wed Oct 19 18:54:32 CEST 2016
It's actually pretty simple to do: use a regex to get the second word,
then use vmod-var to decode the token.
On Oct 19, 2016 12:15, "Kelvin Loke" <kelvin1111111 at gmail.com> wrote:
> Good day everyday, I have a question about req.http.Authorization.
> As req.http.Authorization is at the format of "Basic Uk1CVTUweWMjIyMg==",
> do we have any variable for the base64 decoded value from
> I knew that Varnishncsa has %u for this purpose, it would be great if
> there is a default variable that I can use in Varnish VCL.
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc