Skip to content
Snippets Groups Projects
Commit 33899785 authored by Rohith's avatar Rohith
Browse files

- updating to version v0.0.3

parent 5e8f8297
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ import ( ...@@ -28,7 +28,7 @@ import (
const ( const (
prog = "keycloak-proxy" prog = "keycloak-proxy"
version = "v0.0.2" version = "v0.0.3"
author = "Rohith" author = "Rohith"
email = "gambol99@gmail.com" email = "gambol99@gmail.com"
......
...@@ -32,6 +32,7 @@ func main() { ...@@ -32,6 +32,7 @@ func main() {
kc.Version = version kc.Version = version
kc.Author = author kc.Author = author
kc.Email = email kc.Email = email
kc.Flags = []cli.Flag{ kc.Flags = []cli.Flag{
cli.StringFlag{ cli.StringFlag{
Name: "config", Name: "config",
......
...@@ -20,20 +20,13 @@ import ( ...@@ -20,20 +20,13 @@ import (
"strings" "strings"
) )
func newResource() *Resource {
return &Resource{
Methods: make([]string, 0),
RolesAllowed: make([]string, 0),
}
}
func (r Resource) String() string { func (r Resource) String() string {
var requiredRoles string var requiredRoles string
var requireMethods string var requireMethods string
switch len(r.RolesAllowed) { switch len(r.RolesAllowed) {
case 0: case 0:
requiredRoles = "authentication" requiredRoles = "authentication only"
default: default:
requiredRoles = strings.Join(r.RolesAllowed, ",") requiredRoles = strings.Join(r.RolesAllowed, ",")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment