MCPcopy Index your code
hub / github.com/zitadel/oidc / redirectBack

Function redirectBack

example/server/exampleop/device.go:109–118  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, prompt string)

Source from the content-addressed store, hash-verified

107}
108
109func redirectBack(w http.ResponseWriter, r *http.Request, prompt string) {
110 values := make(url.Values)
111 values.Set("prompt", url.QueryEscape(prompt))
112
113 url := url.URL{
114 Path: "/device",
115 RawQuery: values.Encode(),
116 }
117 http.Redirect(w, r, url.String(), http.StatusSeeOther)
118}
119
120const userCodeCookieName = "user_code"
121

Callers 2

loginHandlerMethod · 0.85
confirmHandlerMethod · 0.85

Calls 2

EncodeMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…