mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-07 11:58:12 +02:00
add signed out page
This commit is contained in:
parent
f649d9b1bc
commit
dce25e12d5
6 changed files with 77 additions and 18 deletions
23
internal/handlers/signedout.go
Normal file
23
internal/handlers/signedout.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
"github.com/pomerium/pomerium/ui"
|
||||
)
|
||||
|
||||
// SignedOutData is the data for the SignedOut page.
|
||||
type SignedOutData struct{}
|
||||
|
||||
// ToJSON converts the data into a JSON map.
|
||||
func (data SignedOutData) ToJSON() map[string]interface{} {
|
||||
return map[string]interface{}{}
|
||||
}
|
||||
|
||||
// SignedOut returns a handler that renders the signed out page.
|
||||
func SignedOut(data SignedOutData) http.Handler {
|
||||
return httputil.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
||||
return ui.ServePage(w, r, "SignedOut", data.ToJSON())
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue