diff --git a/doc.go b/doc.go index 513b526fd9e696d87e935995f7e262f12744485f..1cdcb4dc0fb73ca6d0a8e69b1dd105e002857049 100644 --- a/doc.go +++ b/doc.go @@ -28,7 +28,7 @@ import ( const ( prog = "keycloak-proxy" - version = "v0.0.2" + version = "v0.0.3" author = "Rohith" email = "gambol99@gmail.com" diff --git a/main.go b/main.go index 95d6865880a3fa133d9832578554423cffebc70f..12d99e8e2300afb355f1a8e872d7f95403f6a9d7 100644 --- a/main.go +++ b/main.go @@ -32,6 +32,7 @@ func main() { kc.Version = version kc.Author = author kc.Email = email + kc.Flags = []cli.Flag{ cli.StringFlag{ Name: "config", diff --git a/resource.go b/resource.go index 2453b1be36a3a111c05cee69a0d42c41c6594ed7..bef54ffaa6159628dba8ba5f8bf2a33f3da65f08 100644 --- a/resource.go +++ b/resource.go @@ -20,20 +20,13 @@ import ( "strings" ) -func newResource() *Resource { - return &Resource{ - Methods: make([]string, 0), - RolesAllowed: make([]string, 0), - } -} - func (r Resource) String() string { var requiredRoles string var requireMethods string switch len(r.RolesAllowed) { case 0: - requiredRoles = "authentication" + requiredRoles = "authentication only" default: requiredRoles = strings.Join(r.RolesAllowed, ",") }