fix(http): add {Authorization,Session}Service to AuthenticationHandler
parent
40a98028d8
commit
3996ecb154
|
@ -25,6 +25,9 @@ func setCORSResponseHeaders(w http.ResponseWriter, r *http.Request) {
|
||||||
func NewPlatformHandler(b *APIBackend) *PlatformHandler {
|
func NewPlatformHandler(b *APIBackend) *PlatformHandler {
|
||||||
h := NewAuthenticationHandler()
|
h := NewAuthenticationHandler()
|
||||||
h.Handler = NewAPIHandler(b)
|
h.Handler = NewAPIHandler(b)
|
||||||
|
h.AuthorizationService = b.AuthorizationService
|
||||||
|
h.SessionService = b.SessionService
|
||||||
|
|
||||||
h.RegisterNoAuthRoute("GET", "/api/v2")
|
h.RegisterNoAuthRoute("GET", "/api/v2")
|
||||||
h.RegisterNoAuthRoute("POST", "/api/v2/signin")
|
h.RegisterNoAuthRoute("POST", "/api/v2/signin")
|
||||||
h.RegisterNoAuthRoute("POST", "/api/v2/signout")
|
h.RegisterNoAuthRoute("POST", "/api/v2/signout")
|
||||||
|
|
Loading…
Reference in New Issue