Skip to content

Commit

Permalink
fix: allow access to UI components for unauthenticated users
Browse files Browse the repository at this point in the history
Signed-off-by: Donnie Adams <[email protected]>
  • Loading branch information
thedadams committed Oct 16, 2024
1 parent 8e67324 commit 9ced758
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/api/authz/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ func defaultRules() []rule {

// Build mux that anyone can access
anyMux := http.NewServeMux()
// Allow access to the UI
anyMux.Handle("/admin/", f)
// Allow access to the oauth2 endpoints
anyMux.Handle("/oauth2/", f)
// Allow access to the sign-in page
anyMux.Handle("/sign-in", f)

anyMux.Handle("POST /api/webhooks/{id}", f)

anyMux.Handle("GET /api/token-request/{id}", f)
Expand Down

0 comments on commit 9ced758

Please sign in to comment.