From b5e61bc9799a14d1e34c4283deb4c7680f03c8f6 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 29 Jan 2019 09:06:30 +0000 Subject: [PATCH] fix: external auth by using a different auth header (#649) License: MIT Signed-off-by: Henrique Dias --- frontend | 2 +- http/auth.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend b/frontend index d004015f..e370fbe5 160000 --- a/frontend +++ b/frontend @@ -1 +1 @@ -Subproject commit d004015f0335a4674b4440613086da94de506b7e +Subproject commit e370fbe5007c715c994fbc8716fa193d4e2dc3bb diff --git a/http/auth.go b/http/auth.go index db58bba1..3cd84b5f 100644 --- a/http/auth.go +++ b/http/auth.go @@ -30,7 +30,7 @@ type authToken struct { type extractor []string func (e extractor) ExtractToken(r *http.Request) (string, error) { - token, _ := request.AuthorizationHeaderExtractor.ExtractToken(r) + token, _ := request.HeaderExtractor{"X-Auth"}.ExtractToken(r) // Checks if the token isn't empty and if it contains two dots. // The former prevents incompatibility with URLs that previously