fix: external auth by using a different auth header
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
This commit is contained in:
parent
14a3b5a417
commit
c3a73220fa
2
frontend
2
frontend
@ -1 +1 @@
|
||||
Subproject commit d004015f0335a4674b4440613086da94de506b7e
|
||||
Subproject commit c7110a04ae2254ac1af91d7e9a8feee01687e9b6
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user