MCPcopy Create free account
hub / github.com/zitadel/oidc / registerDeviceAuth

Function registerDeviceAuth

example/server/exampleop/device.go:39–48  ·  view source on GitHub ↗
(storage deviceAuthenticate, router chi.Router)

Source from the content-addressed store, hash-verified

37}
38
39func registerDeviceAuth(storage deviceAuthenticate, router chi.Router) {
40 l := &deviceLogin{
41 storage: storage,
42 cookie: securecookie.New(securecookie.GenerateRandomKey(32), nil),
43 }
44
45 router.HandleFunc("/", l.userCodeHandler)
46 router.Post("/login", l.loginHandler)
47 router.HandleFunc("/confirm", l.confirmHandler)
48}
49
50func renderUserCode(w io.Writer, err error) {
51 data := struct {

Callers 1

SetupServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected