fix(http): add {Authorization,Session}Service to AuthenticationHandler

pull/10616/head
Michael Desa 2018-10-02 16:10:41 -04:00
parent 40a98028d8
commit 3996ecb154
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ func setCORSResponseHeaders(w http.ResponseWriter, r *http.Request) {
func NewPlatformHandler(b *APIBackend) *PlatformHandler {
h := NewAuthenticationHandler()
h.Handler = NewAPIHandler(b)
h.AuthorizationService = b.AuthorizationService
h.SessionService = b.SessionService
h.RegisterNoAuthRoute("GET", "/api/v2")
h.RegisterNoAuthRoute("POST", "/api/v2/signin")
h.RegisterNoAuthRoute("POST", "/api/v2/signout")