*: port oob template

This commit is contained in:
Eric Chiang
2016-10-19 12:45:17 -07:00
parent 86b2d93966
commit 7084a801d7
4 changed files with 36 additions and 2 deletions

View File

@@ -384,8 +384,7 @@ func (s *Server) sendCodeResponse(w http.ResponseWriter, r *http.Request, authRe
}
if authReq.RedirectURI == redirectURIOOB {
// TODO(ericchiang): Add a proper template.
fmt.Fprintf(w, "Code: %s", code.ID)
s.templates.oob(w, code.ID)
return
}
q.Set("code", code.ID)