fix: external auth by using a different auth header (#649)

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
pull/662/head
Henrique Dias 2019-01-29 09:06:30 +00:00 committed by GitHub
parent 14a3b5a417
commit b5e61bc979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit d004015f0335a4674b4440613086da94de506b7e
Subproject commit e370fbe5007c715c994fbc8716fa193d4e2dc3bb

View File

@ -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