fix (auth): signature change

This commit is contained in:
Mickael Kerjean
2022-01-10 17:42:07 +11:00
parent aa432414f3
commit e827e8149b

View File

@ -37,12 +37,13 @@ func (this Saml) Setup() Form {
}
}
func (this Saml) EntryPoint(req *http.Request, res http.ResponseWriter) {
func (this Saml) EntryPoint(idpParams map[string]string, req *http.Request, res http.ResponseWriter) error {
http.Redirect(
res, req,
"/?error=saml is available for enterprise customer, see https://www.filestash.app/pricing/?modal=enterprise",
http.StatusTemporaryRedirect,
)
return nil
}
func (this Saml) Callback(formData map[string]string, idpParams map[string]string, res http.ResponseWriter) (map[string]string, error) {