mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-10 23:57:34 +02:00
remove forward auth (#3628)
This commit is contained in:
parent
ba07afc245
commit
fa26587f19
68 changed files with 302 additions and 5072 deletions
|
@ -116,16 +116,6 @@ func (p *Proxy) setHandlers(opts *config.Options) error {
|
|||
// dashboard handlers are registered to all routes
|
||||
r = p.registerDashboardHandlers(r)
|
||||
|
||||
forwardAuthURL, err := opts.GetForwardAuthURL()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if forwardAuthURL != nil {
|
||||
// if a forward auth endpoint is set, register its handlers
|
||||
h := r.Host(forwardAuthURL.Hostname()).Subrouter()
|
||||
h.PathPrefix("/").Handler(p.registerFwdAuthHandlers())
|
||||
}
|
||||
|
||||
p.currentRouter.Store(r)
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue