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