wrapXHTML puts fragment, a form made by one of the PostWithNonce methods, in a page the way samlsp.Middleware does.
(fragment []byte)
| 68 | // wrapXHTML puts fragment, a form made by one of the PostWithNonce methods, |
| 69 | // in a page the way samlsp.Middleware does. |
| 70 | func wrapXHTML(fragment []byte) []byte { |
| 71 | return []byte(`<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Continue</title></head><body>` + |
| 72 | string(fragment) + `</body></html>`) |
| 73 | } |
| 74 | |
| 75 | // awkward values check that whatever the templates interpolate is escaped |
| 76 | // in a way that stays well-formed XML. |
no outgoing calls
no test coverage detected