Skip to content

Commit

Permalink
fix(daemon): Register error routes on admin port (#226)
Browse files Browse the repository at this point in the history
Co-authored-by: hackerman <3372410+aeneasr@users.noreply.github.com>
  • Loading branch information
zepatrik and aeneasr committed Feb 3, 2020
1 parent c121601 commit decd8d8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/daemon/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func serveAdmin(d driver.Driver, wg *sync.WaitGroup, cmd *cobra.Command, args []
r.IdentityHandler().RegisterAdminRoutes(router)
r.SessionHandler().RegisterAdminRoutes(router)
r.HealthHandler().SetRoutes(router.Router, true)
r.SelfServiceErrorHandler().RegisterAdminRoutes(router)

n.Use(NewNegroniLoggerMiddleware(l.(*logrus.Logger), "admin#"+c.SelfAdminURL().String()))
n.Use(sqa(cmd, d))
Expand Down
2 changes: 1 addition & 1 deletion contrib/quickstart/oathkeeper/access-rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
preserve_host: true
url: "http://kratos-selfservice-ui-node:4435"
match:
url: "http://127.0.0.1:4455<(/debug|/|/dashboard|)(|/)>"
url: "http://127.0.0.1:4455<(/debug|/|/dashboard|/profile|)(|/)>"
methods:
- GET
authenticators:
Expand Down
22 changes: 22 additions & 0 deletions internal/httpclient/models/registration_request_method.go

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

0 comments on commit decd8d8

Please sign in to comment.