func (r *AuthnRequest) CompressedEncodedString() (string, error) { saml, err := r.String() if err != nil { return "", err } compressed := util.Compress([]byte(saml)) b64XML := base64.StdEncoding.EncodeToString(compressed) return b64XML, nil }
func (r *AuthnRequest) CompressedEncodedSignedString(privateKeyPath string) (string, error) { signed, err := r.SignedString(privateKeyPath) if err != nil { return "", err } compressed := util.Compress([]byte(signed)) b64XML := base64.StdEncoding.EncodeToString(compressed) return b64XML, nil }