Skip to content

Commit

Permalink
Processed login redirect url for auth0 extension
Browse files Browse the repository at this point in the history
  • Loading branch information
markdicksonjr committed Apr 21, 2019
1 parent c155d52 commit 6f71b26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions user/auth/auth0/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}`))
Expand Down

0 comments on commit 6f71b26

Please sign in to comment.