diff --git a/caddy/setup.go b/caddy/setup.go index d604c0e..582a49d 100644 --- a/caddy/setup.go +++ b/caddy/setup.go @@ -40,7 +40,7 @@ func setup(c *caddy.Controller) error { } if len(args) == 1 { - logging.Logger.Warnf("DEPRECATED: Please set the loing path by parameter login_path and not as directive argument (%v:%v)", c.File(), c.Line()) + logging.Logger.Warnf("DEPRECATED: Please set the login path by parameter login_path and not as directive argument (%v:%v)", c.File(), c.Line()) config.LoginPath = path.Join(args[0], "/login") } @@ -73,7 +73,7 @@ func parseConfig(c *caddy.Controller) (*login.Config, error) { cfg.ConfigureFlagSet(fs) for c.NextBlock() { - // caddy preferes '_' in parameter names, + // caddy prefers '_' in parameter names, // so we map them to the '-' from the command line flags // the replacement supports both, for backwards compatibility name := strings.Replace(c.Val(), "_", "-", -1) diff --git a/htpasswd/backend.go b/htpasswd/backend.go index 693c13f..b02878d 100644 --- a/htpasswd/backend.go +++ b/htpasswd/backend.go @@ -29,7 +29,7 @@ type Backend struct { auth *Auth } -// NewBackend creates a new Backend and verifies the parameters. +// NewBackend creates a new Backend and verifies the parameters. func NewBackend(filename string) (*Backend, error) { auth, err := NewAuth(filename) return &Backend{ diff --git a/login/config.go b/login/config.go index 3987899..5895e9a 100644 --- a/login/config.go +++ b/login/config.go @@ -95,14 +95,14 @@ func (c *Config) ConfigureFlagSet(f *flag.FlagSet) { // the -backends is deprecated, but we support it for backwards compatibility deprecatedBackends := setFunc(func(optsKvList string) error { - logging.Logger.Warn("DEPRECATED: '-backend' is no loger supported. Please set the backends by explicit paramters") + logging.Logger.Warn("DEPRECATED: '-backend' is no longer supported. Please set the backends by explicit parameters") opts, err := parseOptions(optsKvList) if err != nil { return err } pName, ok := opts["provider"] if !ok { - return errors.New("missing provder name provider=..") + return errors.New("missing provider name provider=...") } delete(opts, "provider") c.Backends[pName] = opts diff --git a/login/provider_description.go b/login/provider_description.go index 8fac54f..6f17df5 100644 --- a/login/provider_description.go +++ b/login/provider_description.go @@ -4,6 +4,6 @@ type ProviderDescription struct { // the name of the provider Name string - // the text for the commandline optio + // the text for the commandline option HelpText string } diff --git a/osiam/client.go b/osiam/client.go index 7724d28..9ba8c13 100644 --- a/osiam/client.go +++ b/osiam/client.go @@ -24,7 +24,7 @@ func NewClient(endpoint string, clientId string, clientSecret string) *Client { } // Do an Osiam authorisation by Resource Owner Password Credentials Grant. -// If no scopes are supplied, the default scope ist 'me'. +// If no scopes are supplied, the default scope is 'me'. func (c *Client) GetTokenByPassword(username, password string, scopes ...string) (authenticated bool, token *Token, err error) { scopeList := strings.Join(scopes, ",") if scopeList == "" {