mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 01:58:11 +08:00 
			
		
		
		
	fix (auth): signature change
This commit is contained in:
		| @ -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( | 	http.Redirect( | ||||||
| 		res, req, | 		res, req, | ||||||
| 		"/?error=saml is available for enterprise customer, see https://www.filestash.app/pricing/?modal=enterprise", | 		"/?error=saml is available for enterprise customer, see https://www.filestash.app/pricing/?modal=enterprise", | ||||||
| 		http.StatusTemporaryRedirect, | 		http.StatusTemporaryRedirect, | ||||||
| 	) | 	) | ||||||
|  | 	return nil | ||||||
| } | } | ||||||
|  |  | ||||||
| func (this Saml) Callback(formData map[string]string, idpParams map[string]string, res http.ResponseWriter) (map[string]string, error) { | func (this Saml) Callback(formData map[string]string, idpParams map[string]string, res http.ResponseWriter) (map[string]string, error) { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Mickael Kerjean
					Mickael Kerjean