diff --git a/auth.go b/auth.go index 4689664..ec61912 100644 --- a/auth.go +++ b/auth.go @@ -1,16 +1,8 @@ package main -// User as in auth-poisson -type User struct { - Username string - UID int - - Name string - Surname string - FullName string - - // ... -} +import ( + . "github.com/phc-dm/auth-poisson/user" +) // AuthService rappresenta un servizio di autenticazione type AuthService interface { diff --git a/go.mod b/go.mod index 0b2c3bb..4cd8e2c 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,9 @@ -module git.phc.dm.xxxxx.xx/server-poisson +module github.com/phc-dm/server-poisson go 1.13 require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/labstack/echo/v4 v4.1.16 + github.com/phc-dm/auth-poisson v0.0.0-20200821204052-10444759b7f9 ) diff --git a/go.sum b/go.sum index 7042419..f80517c 100644 --- a/go.sum +++ b/go.sum @@ -3,6 +3,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/go-asn1-ber/asn1-ber v1.3.1/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= +github.com/go-ldap/ldap/v3 v3.1.7/go.mod h1:5Zun81jBTabRaI8lzN7E1JjyEl1g6zI6u9pd8luAK4Q= github.com/labstack/echo/v4 v4.1.16 h1:8swiwjE5Jkai3RPfZoahp8kjVCRNq+y7Q0hPji2Kz0o= github.com/labstack/echo/v4 v4.1.16/go.mod h1:awO+5TzAjvL8XpibdsfXxPgHr+orhtXZJZIQCVjogKI= github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0= @@ -14,6 +16,8 @@ github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ= github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/phc-dm/auth-poisson v0.0.0-20200821204052-10444759b7f9 h1:Ne5q6JBF9Ug7B5PSUA5msWFzWfvi66CC1sGon48ar1I= +github.com/phc-dm/auth-poisson v0.0.0-20200821204052-10444759b7f9/go.mod h1:x8BOkBHuscs/7fH+0qavhe1khbyrg9+sjOWrgS6IIi8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= diff --git a/main.go b/main.go index ff57736..bfceeef 100644 --- a/main.go +++ b/main.go @@ -6,9 +6,9 @@ import ( "os" "strconv" - "git.phc.dm.xxxxx.xx/server-poisson/utils" "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" + "github.com/phc-dm/server-poisson/utils" ) type object map[string]interface{}