Use authenticate and Auth Method repo functions (#242)

This commit is contained in:
Todd Knight authored and GitHub committed 2020-08-07 10:18:40 -07:00
1 parent 908a299ea3
commit f84991c0f1
17 files changed
+324 -184

No files matched your search

+1 -1
View File
@@ -89,7 +89,7 @@ func handleGrpcGateway(c *Controller) (http.Handler, error) {
if err := services.RegisterAccountServiceHandlerServer(ctx, mux, accts); err != nil {
return nil, fmt.Errorf("failed to register account service handler: %w", err)
}
auths, err := authenticate.NewService(c.IamRepoFn, c.AuthTokenRepoFn)
auths, err := authenticate.NewService(c.PasswordAuthRepoFn, c.IamRepoFn, c.AuthTokenRepoFn)
if err != nil {
return nil, fmt.Errorf("failed to create authentication handler service: %w", err)
}