Skip to content

Commit

Permalink
added / to apiBase to be parsed out of URL (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinapathak authored Feb 12, 2020
1 parent 4b79f4c commit 78bd711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primaryHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ func authChain(basicAuth []string, jwtVal JWTValidator, capabilityCheck Capabili
options := []basculehttp.COption{
basculehttp.WithCLogger(GetLogger),
basculehttp.WithCErrorResponseFunc(listener.OnErrorResponse),
basculehttp.WithParseURLFunc(basculehttp.CreateRemovePrefixURLFunc(apiBase, basculehttp.DefaultParseURLFunc)),
basculehttp.WithParseURLFunc(basculehttp.CreateRemovePrefixURLFunc(apiBase+"/", basculehttp.DefaultParseURLFunc)),
}
if len(basicAllowed) > 0 {
options = append(options, basculehttp.WithTokenFactory("Basic", basculehttp.BasicTokenFactory(basicAllowed)))
Expand Down

0 comments on commit 78bd711

Please sign in to comment.