func samlMetadata(w http.ResponseWriter, r *http.Request) error {
	if app.AuthScheme.Name() != "saml" {
		return &errors.HTTP{
			Code:    http.StatusBadRequest,
			Message: "This URL is only supported with saml enabled",
		}
	}
	page, err := saml.Metadata()
	if err != nil {
		return err
	}
	w.Header().Set("Content-Type", "application/xml")
	w.Write([]byte(page))
	return nil
}
func samlMetadata(w http.ResponseWriter, r *http.Request) error {
	if app.AuthScheme.Name() != "saml" {
		return &errors.HTTP{
			Code:    http.StatusBadRequest,
			Message: "This URL is only supported with saml enabled",
		}
	}
	page, err := saml.Metadata()
	if err != nil {
		return err
	}
	w.Header().Set("Content-Type", "application/xml")
	w.Write([]byte(page))
	return nil
}
func samlMetadata ( w http . ResponseWriter , r * http . Request ) error { if app . AuthScheme . Name ( ) != " " { return & errors . HTTP { Code : http . StatusBadRequest , Message : " " , } } page , err := saml . Metadata ( ) if err != nil { return err } w . Header ( ) . Set ( " " , " " ) w . Write ( [ ] byte ( page ) ) return nil }
// title: saml metadata
// path: /auth/saml
// method: GET
// produce: application/xml
// responses:
//   200: Ok
//   400: Invalid data
title : saml metadata path : / auth / saml method : GET produce : application / xml responses : 200 : Ok 400 : Invalid data