-
- Downloads
Refactor the login handler
The login handler is now a simpler, standalone http.Handler wrapper. The separation between the SSO application and the login handler is now fairly complete. The login handler no longer forces the user to a specific workflow via session cookies, but it works on a request-by-request basis instead, which makes the "back" button works as expected (allowing the user to bail out of a broken 2FA process, for example). Session handling has been simplified as well: there is a single session for authentication and login state, which should remove the opportunity for session synchronization errors.
parent
6d3a620e
No related branches found
No related tags found
Showing
- httpsso/handler.go 22 additions, 15 deletionshttpsso/handler.go
- httputil/headers.go 23 additions, 0 deletionshttputil/headers.go
- httputil/renderer.go 57 additions, 0 deletionshttputil/renderer.go
- httputil/session.go 77 additions, 12 deletionshttputil/session.go
- httputil/session_test.go 19 additions, 19 deletionshttputil/session_test.go
- httputil/static.go 38 additions, 0 deletionshttputil/static.go
- server/device/manager.go 9 additions, 2 deletionsserver/device/manager.go
- server/device/store.go 2 additions, 2 deletionsserver/device/store.go
- server/http.go 162 additions, 315 deletionsserver/http.go
- server/http_test.go 3 additions, 3 deletionsserver/http_test.go
- server/httplog_test.go 1 addition, 1 deletionserver/httplog_test.go
- server/login.go 0 additions, 386 deletionsserver/login.go
- server/login/login.go 434 additions, 0 deletionsserver/login/login.go
- server/service_test.go 3 additions, 3 deletionsserver/service_test.go
- server/util.go 0 additions, 15 deletionsserver/util.go
- vendor/github.com/gorilla/context/README.md 1 addition, 1 deletionvendor/github.com/gorilla/context/README.md
- vendor/github.com/gorilla/handlers/README.md 1 addition, 1 deletionvendor/github.com/gorilla/handlers/README.md
- vendor/github.com/gorilla/handlers/cors.go 6 additions, 23 deletionsvendor/github.com/gorilla/handlers/cors.go
- vendor/github.com/gorilla/mux/AUTHORS 8 additions, 0 deletionsvendor/github.com/gorilla/mux/AUTHORS
- vendor/github.com/gorilla/mux/ISSUE_TEMPLATE.md 11 additions, 0 deletionsvendor/github.com/gorilla/mux/ISSUE_TEMPLATE.md
Loading
Please register or sign in to comment