mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 09:56:31 +02:00
* mui v5 wip * wip * wip * wip * use compressor for all controlplane endpoints * wip * wip * add deps * fix authenticate URL * fix test * fix test * fix build * maybe fix build * fix integration test * remove image asset test * add yarn.lock
19 lines
602 B
Go
19 lines
602 B
Go
package handlers
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
|
|
"github.com/pomerium/pomerium/internal/httputil"
|
|
"github.com/pomerium/pomerium/internal/urlutil"
|
|
"github.com/pomerium/pomerium/ui"
|
|
)
|
|
|
|
// DeviceEnrolled displays an HTML page informing the user that they've successfully enrolled a device.
|
|
func DeviceEnrolled(authenticateURL *url.URL, sharedKey []byte) http.Handler {
|
|
return httputil.HandlerFunc(func(w http.ResponseWriter, r *http.Request) error {
|
|
return ui.ServePage(w, r, "DeviceEnrolled", map[string]interface{}{
|
|
"signOutUrl": urlutil.SignOutURL(r, authenticateURL, sharedKey),
|
|
})
|
|
})
|
|
}
|