Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

Commit

Permalink
0.9.6: Server ready message
Browse files Browse the repository at this point in the history
This release adds a message when the authentication server is ready.
  • Loading branch information
Janos Pasztor committed Mar 9, 2021
1 parent a940ffd commit 1eb0daf
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 0.9.6: Server ready message

This release adds a message when the authentication server is ready.

## 0.9.5: Direct metrics support

This release adds metrics support directly in the auth library.
Expand Down
3 changes: 3 additions & 0 deletions codes.go
Expand Up @@ -16,3 +16,6 @@ const EAuthFailed = "AUTH_FAILED"

// The user has provided the correct credentials and the authentication is accepted.
const MAuthSuccessful = "AUTH_SUCCESSFUL"

// The ContainerSSH authentication server is now available.
const MAuthServerAvailable = "AUTH_AVAILABLE"
8 changes: 4 additions & 4 deletions go.mod
Expand Up @@ -3,10 +3,10 @@ module github.com/containerssh/auth
go 1.14

require (
github.com/containerssh/geoip v0.9.3 // indirect
github.com/containerssh/http v0.9.7
github.com/containerssh/geoip v0.9.4 // indirect
github.com/containerssh/http v0.9.9
github.com/containerssh/log v0.9.13
github.com/containerssh/metrics v0.9.6
github.com/containerssh/service v0.9.2
github.com/containerssh/metrics v0.9.8
github.com/containerssh/service v0.9.3
github.com/stretchr/testify v1.7.0
)
9 changes: 9 additions & 0 deletions go.sum
@@ -1,8 +1,12 @@
github.com/containerssh/geoip v0.9.3 h1:RDj46uxB3Ew7qoTHCUClBDkqULRZJOLxYf/VqPgEuK8=
github.com/containerssh/geoip v0.9.3/go.mod h1:8fyg4eUrKKY0FDyS7GofI6OO7UXDoG1icRtVAHb510k=
github.com/containerssh/geoip v0.9.4 h1:ugkbESJpitdObbSHdYNQfpoFJOlvxwNCX2ZHHnlVJzA=
github.com/containerssh/geoip v0.9.4/go.mod h1:JxyH+hKj7LfoXWmOMR5lQVrNJCpy42N3GNWSPEguq24=
github.com/containerssh/http v0.9.4/go.mod h1:KTBEbXRSdllIGOb+O6AURBCG+9vCEyo6AI+JCrI94Cw=
github.com/containerssh/http v0.9.7 h1:uAJa1ftiTh53awvnc0wb7zQAv/AyWpKClY/DcyUWAsk=
github.com/containerssh/http v0.9.7/go.mod h1:iSFsy8J/NCZNQfx6Eh4VeNnFnUamByVRlerm7L2s7S8=
github.com/containerssh/http v0.9.9 h1:28F8tw0pcwVUS3ClpvsaTVyCKvARLP8R4zqdbVQMrjo=
github.com/containerssh/http v0.9.9/go.mod h1:138EGp1m2eSk+MIPD837NAVMNzExedP5VvEnWl5B2gk=
github.com/containerssh/log v0.9.2/go.mod h1:05pgNm7IgFKt+qbZiUhtuJw2B4j3ynn2vSv5j2JA7hA=
github.com/containerssh/log v0.9.7/go.mod h1:NBMzkhOLZ4z45ShSBKQ/Ij6Hqqg15DgOKy6HlSITx0s=
github.com/containerssh/log v0.9.10/go.mod h1:NBMzkhOLZ4z45ShSBKQ/Ij6Hqqg15DgOKy6HlSITx0s=
Expand All @@ -14,9 +18,13 @@ github.com/containerssh/log v0.9.13 h1:jBSrFaxZNGwkjHU6y/efYI8lyG8KIFR5aOIeOnNzq
github.com/containerssh/log v0.9.13/go.mod h1:uVuUPoZsJYi2KoV9+lgPeB/gWuXeUTD3AoVxc4y+tKY=
github.com/containerssh/metrics v0.9.6 h1:m4Q6IM8zZsghYCV978ZMqh9TQ6dkLWHDyYA5nHU2kpk=
github.com/containerssh/metrics v0.9.6/go.mod h1:yClAiBuFrIrmxQLyU/AjR1XNbqPIHg+m/Hb2EZrVtRE=
github.com/containerssh/metrics v0.9.8 h1:dJNb21Nd0IJxE1bEOevOrnwSinaMLuiZATwix0v4GxI=
github.com/containerssh/metrics v0.9.8/go.mod h1:+CIKiJ+XxdVUcnNwe2noB15YM4VR/hp3zQ4/vE1dHuI=
github.com/containerssh/service v0.9.0/go.mod h1:otAKYF1MWy2eB0K7Sk7YQIECQMTHR3yikbyS1UstGpY=
github.com/containerssh/service v0.9.2 h1:+EZ7s7sxSme+IosYBR24oNhVlPTz3GJTXBZ0HaSD9rU=
github.com/containerssh/service v0.9.2/go.mod h1:nbA2I+GL0vU7ls0JEQKI+QOJfbUjlIDmmUSQqx/G7ro=
github.com/containerssh/service v0.9.3 h1:mYpvZ9zxUrKL8OpBen86heXfGtdUGdtfZ3Y7P605zvQ=
github.com/containerssh/service v0.9.3/go.mod h1:Yeq3hwfM6js9TfpkrQAQhv5IRfurrGEkM+AbFEC9KCE=
github.com/containerssh/structutils v0.9.0 h1:pz4xl5ZrPnpdSx7B/ru8Fj3oU3vOtx1jprIuSkm5s7o=
github.com/containerssh/structutils v0.9.0/go.mod h1:zirdwNXan3kuTpsJp9Gl3W6VQz0fexqMySqxmfviSjw=
github.com/creasty/defaults v1.5.1 h1:j8WexcS3d/t4ZmllX4GEkl4wIB/trOr035ajcLHCISM=
Expand Down Expand Up @@ -60,6 +68,7 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76 h1:Dho5nD6R3PcW2SH1or8vS0dszDaXRxIw55lBX7XiE5g=
golang.org/x/sys v0.0.0-20191224085550-c709ea063b76/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
Expand Down
3 changes: 3 additions & 0 deletions server.go
Expand Up @@ -17,5 +17,8 @@ func NewServer(
configuration,
NewHandler(h, logger),
logger,
func(url string) {
logger.Info(log.NewMessage(MAuthServerAvailable, "The authentication server is now available at %s", url))
},
)
}

0 comments on commit 1eb0daf

Please sign in to comment.