Skip to content

Commit

Permalink
OIDC: Redirect to user home page after successful authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Nov 7, 2023
1 parent 00a6471 commit 6de51c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ui/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,6 @@ func (m *middleware) handleAuthProxy(next http.Handler) http.Handler {
config.Opts.BasePath(),
))

html.Redirect(w, r, route.Path(m.router, "unread"))
html.Redirect(w, r, route.Path(m.router, user.DefaultHomePage))
})
}
2 changes: 1 addition & 1 deletion internal/ui/oauth2_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,5 @@ func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) {
config.Opts.BasePath(),
))

html.Redirect(w, r, route.Path(h.router, "unread"))
html.Redirect(w, r, route.Path(h.router, user.DefaultHomePage))
}

0 comments on commit 6de51c6

Please sign in to comment.