Update permission issues
This commit is contained in:
parent
28d724731a
commit
dfeed76a66
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ func InitV2Router() http.Handler {
|
|||
},
|
||||
TokenLookupFuncs: []echo_middleware.ValuesExtractor{
|
||||
func(c echo.Context) ([]string, error) {
|
||||
return []string{c.Request().Header.Get(echo.HeaderAuthorization)}, nil
|
||||
if len(c.Request().Header.Get(echo.HeaderAuthorization)) > 0 {
|
||||
return []string{c.Request().Header.Get(echo.HeaderAuthorization)}, nil
|
||||
}
|
||||
return []string{c.QueryParam("token")}, nil
|
||||
},
|
||||
},
|
||||
}))
|
||||
|
|
Loading…
Reference in a new issue