refactoring (sso): sso middleware

This commit is contained in:
Mickael Kerjean
2022-01-10 00:42:16 +11:00
parent fa1931ef5f
commit f1c32880a3
9 changed files with 93 additions and 33 deletions

View File

@ -22,7 +22,7 @@ type IBackend interface {
type IAuth interface {
Setup() Form
EntryPoint(req *http.Request, res http.ResponseWriter)
EntryPoint(idpParams map[string]string, req *http.Request, res http.ResponseWriter) error
Callback(formData map[string]string, idpParams map[string]string, res http.ResponseWriter) (map[string]string, error)
}