Skip to content

Commit

Permalink
Merge pull request #114 from RedHatInsights/update-IP-endpoints-to-be…
Browse files Browse the repository at this point in the history
…-public

Update IP endpoints to be on a public route
  • Loading branch information
aleccohan authored May 22, 2024
2 parents 1ed754e + 85b14fe commit 7ba0cc5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ podman run -it --name keycloak -p 8080:8080 \
-e KEYCLOAK_ADMIN_PASSWORD=change_me \
-e KEYCLOAK_IMPORT=/opt/keycloak/data/import/redhat-external-realm.json \
-v ${PWD}/data/redhat-external-realm.json:/opt/keycloak/data/import/redhat-external-realm.json:z \
quay.io/keycloak/keycloak:15:0.2
quay.io/keycloak/keycloak:15.0.2
```

Then run MBOP, either building and running it locally:
Expand Down
6 changes: 3 additions & 3 deletions cmd/mbop/mbop.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func main() {
r.Delete("/v1/registrations/{uid}", handlers.RegistrationDeleteHandler)
r.Get("/v1/registrations/token", handlers.TokenHandler)

r.Get("/v1/allowlist", handlers.AllowlistListHandler)
r.Post("/v1/allowlist", handlers.AllowlistCreateHandler)
r.Delete("/v1/allowlist", handlers.AllowlistDeleteHandler)
r.Get("/api/v1/allowlist", handlers.AllowlistListHandler)
r.Post("/api/v1/allowlist", handlers.AllowlistCreateHandler)
r.Delete("/api/v1/allowlist", handlers.AllowlistDeleteHandler)
})

err := mailer.InitConfig()
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/allowlist_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func AllowlistDeleteHandler(w http.ResponseWriter, r *http.Request) {

block := r.URL.Query().Get("block")
if block == "" {
do400(w, "need address in path in the form `/v1/allowlist?block={block}")
do400(w, "need address in path in the form `/api/v1/allowlist?block={block}")
return
}

Expand Down

0 comments on commit 7ba0cc5

Please sign in to comment.