MCPcopy Create free account
hub / github.com/crewjam/saml / ParseRedirectResponse

Function ParseRedirectResponse

testsaml/parse.go:30–32  ·  view source on GitHub ↗

ParseRedirectResponse returns the decoded SAML LogoutResponse from an HTTP-Redirect URL

(u *url.URL)

Source from the content-addressed store, hash-verified

28
29// ParseRedirectResponse returns the decoded SAML LogoutResponse from an HTTP-Redirect URL
30func ParseRedirectResponse(u *url.URL) ([]byte, error) {
31 return parseRedirect(u, "SAMLResponse", "response")
32}
33
34func parseRedirect(u *url.URL, param, what string) ([]byte, error) {
35 compressed, err := base64.StdEncoding.DecodeString(u.Query().Get(param))

Calls 1

parseRedirectFunction · 0.85