mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
authenticate: redirect / to /.pomerium/ (#2770)
This commit is contained in:
parent
d90d4caf1a
commit
a5034aabae
3 changed files with 5 additions and 2 deletions
|
@ -67,6 +67,9 @@ func (a *Authenticate) Mount(r *mux.Router) {
|
|||
)(h)
|
||||
})
|
||||
|
||||
// redirect / to /.pomerium/
|
||||
r.Path("/").Handler(http.RedirectHandler("/.pomerium/", http.StatusFound))
|
||||
|
||||
r.Path("/robots.txt").HandlerFunc(a.RobotsTxt).Methods(http.MethodGet)
|
||||
// Identity Provider (IdP) endpoints
|
||||
r.Path("/oauth2/callback").Handler(httputil.HandlerFunc(a.OAuthCallback)).Methods(http.MethodGet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue