load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "authserver", srcs = [ "auth_server.go", "checks.go", "constants.go", "db.go", "handlers.go", "logger.go", "metrics.go", "sql.go", "vnc.go", ], importpath = "edge-infra.dev/pkg/sds/remoteaccess/authserver", visibility = ["//visibility:public"], deps = [ "//pkg/edge/api/middleware", "//pkg/edge/api/sql", "//pkg/edge/auth-proxy/types", "//pkg/edge/bsl", "//pkg/lib/fog", "//pkg/lib/gcp/cloudsql", "//pkg/lib/uuid", "//pkg/sds/vnc/constants", "@com_github_gin_contrib_cors//:cors", "@com_github_gin_contrib_requestid//:requestid", "@com_github_gin_contrib_sessions//:sessions", "@com_github_gin_contrib_sessions//postgres", "@com_github_gin_gonic_gin//:gin", "@com_github_go_logr_logr//:logr", "@com_github_penglongli_gin_metrics//ginmetrics", "@com_github_peterbourgon_ff_v3//:ff", ], ) go_test( name = "authserver_test", srcs = [ "checks_test.go", "handlers_test.go", "vnc_test.go", ], embed = [":authserver"], deps = [ "//pkg/edge/api/sql", "//pkg/edge/api/testutils/seededpostgres", "//pkg/edge/auth-proxy/session", "//pkg/lib/fog", "//pkg/sds/vnc/constants", "@com_github_gin_contrib_sessions//:sessions", "@com_github_gin_gonic_gin//:gin", "@com_github_google_uuid//:uuid", "@com_github_stretchr_testify//assert", ], )