From 6f71b263612f3dbfbf5c6c01817b09e88aa8c836 Mon Sep 17 00:00:00 2001 From: Mark Dickson Jr Date: Sun, 21 Apr 2019 16:06:09 -0400 Subject: [PATCH] Processed login redirect url for auth0 extension --- user/auth/auth0/extension.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/user/auth/auth0/extension.go b/user/auth/auth0/extension.go index 9171b42..18efb8f 100644 --- a/user/auth/auth0/extension.go +++ b/user/auth/auth0/extension.go @@ -61,6 +61,11 @@ func (s *Extension) Init(app *nibbler.Application) error { return false, err } + if len(s.LoggedInRedirectUrl) > 0 { + http.Redirect(w, r, s.LoggedInRedirectUrl, http.StatusSeeOther) + return + } + w.WriteHeader(http.StatusOK) w.Header().Set("Content-Type", "application/json") _, err = w.Write([]byte(`{"result": "ok"}`))