Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Remove a print of customers in edge-auth
Browse files Browse the repository at this point in the history
This removes a printing of the customers in edge-auth.

Signed-off-by: Alistair Hey <[email protected]>
  • Loading branch information
Waterdrips authored and alexellis committed Nov 23, 2020
1 parent 63eb696 commit ca93a96
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
6 changes: 3 additions & 3 deletions edge-auth/Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion edge-auth/Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[[constraint]]
name = "github.com/openfaas/openfaas-cloud"
version = "0.13.0"
version = "0.14.2"

[prune]
go-tests = true
Expand Down
8 changes: 7 additions & 1 deletion edge-auth/handlers/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ func MakeQueryHandler(config *Config, protected []string, restrictedPrefix []str
customersURL := os.Getenv("customers_url")

customers := sdk.NewCustomers(customersPath, customersURL)
customers.Fetch()
if err := customers.Fetch(); err != nil {
log.Printf("Unable to fetch customers from configured source: %s", err)
return func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusInternalServerError)
}
}


return func(w http.ResponseWriter, r *http.Request) {
query := r.URL.Query()
Expand Down
10 changes: 10 additions & 0 deletions edge-auth/vendor/github.com/openfaas/openfaas-cloud/sdk/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions edge-auth/vendor/github.com/openfaas/openfaas-cloud/sdk/event.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca93a96

Please sign in to comment.