Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
JarekKa committed Dec 15, 2023
1 parent cb96861 commit c096e04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion credentials/scopes_logical_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type ScopeValidation func(scopeResult map[string]bool) error
func DefaultValidation(scopeResult map[string]bool) error {
for sc, result := range scopeResult {
if !result {
return errors.WithStack(herodot.ErrInternalServerError.WithReasonf(`JSON Web Token is missing required scope "%s".`, sc))
return errors.WithStack(herodot.ErrInternalServerError.WithReasonf(`JSON Web Token is missing required scope "%s"`, sc))
}
}

Expand Down
2 changes: 1 addition & 1 deletion driver/configuration/provider_koanf.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (v *KoanfProvider) ToScopeValidation(value string, key string) credentials.
case "any":
return credentials.AnyValidation
default:
v.l.Errorf(`Configuration key "%s" declares unknown scope strategy "%s", only "default", "any", are supported. Falling back to strategy "default".`, key, value)
v.l.Errorf(`Configuration key "%s" declares unknown scope validation policy "%s", only "default" and "any" are supported. Falling back to policy "default".`, key, value)
return credentials.DefaultValidation
}
}
Expand Down

0 comments on commit c096e04

Please sign in to comment.