mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 16:30:17 +02:00
proxy: add userinfo and webauthn endpoints
This commit is contained in:
parent
6b5096b0fe
commit
5d64e158c7
26 changed files with 404 additions and 167 deletions
15
internal/handlers/device-enrolled.go
Normal file
15
internal/handlers/device-enrolled.go
Normal file
|
@ -0,0 +1,15 @@
|
|||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/httputil"
|
||||
"github.com/pomerium/pomerium/ui"
|
||||
)
|
||||
|
||||
// DeviceEnrolled displays an HTML page informing the user that they've successfully enrolled a device.
|
||||
func DeviceEnrolled(data UserInfoData) http.Handler {
|
||||
return httputil.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
||||
return ui.ServePage(w, r, "DeviceEnrolled", data.ToJSON())
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue