Skip to content

Commit

Permalink
Basic Authentication - #399
Browse files Browse the repository at this point in the history
Code review points part #2.

See <#399> for further information.
  • Loading branch information
Mohamed Bana authored and mbana committed Jun 15, 2022
1 parent 7dff4b3 commit d789f27
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 157 deletions.
4 changes: 3 additions & 1 deletion pkg/options/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ type AuthUpstreamHost struct {
Port uint32 `json:"port,omitempty" yaml:"port,omitempty"`
}

func (o *AuthOptions) Validate() error {
func (o AuthOptions) Validate() error {
// Nothing to validate yet
// return nil
return validation.ValidateStruct(&o,
validation.Field(&o.Scheme, validation.In("basic")),
validation.Field(&o.AuthUpstream.Host.Hostname, is.Host),
Expand Down
3 changes: 0 additions & 3 deletions protoypes/PROTOTYPES.md

This file was deleted.

41 changes: 0 additions & 41 deletions protoypes/manifests/auth-basic-staticroute.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions protoypes/manifests/ext-authz-http-service-api.yaml

This file was deleted.

76 changes: 0 additions & 76 deletions protoypes/manifests/ext-authz-http-service.yaml

This file was deleted.

0 comments on commit d789f27

Please sign in to comment.