Skip to content

Commit

Permalink
Drop authorizer wrapper
Browse files Browse the repository at this point in the history
The openshift authorizer was wrapping kube authorizer only to generate
Forbidden messages, but upstream already generate similar messages and we
cannot intercept and change those. So let's just stop duplicating errors
and use the upstream authorizer and error messages as is.

Signed-off-by: Simo Sorce <simo@redhat.com>
  • Loading branch information
simo5 committed Aug 6, 2018
1 parent fcf6cae commit 70b54e7
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 450 deletions.
49 changes: 0 additions & 49 deletions pkg/authorization/authorizer/authorizer.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestBrowserSafeAuthorizer(t *testing.T) {
safeAuthorizer := NewBrowserSafeAuthorizer(delegateAuthorizer, "system:authenticated")

authorized, reason, err := safeAuthorizer.Authorize(tc.attributes)
if authorized == authorizer.DecisionAllow || len(reason) != 0 || err != nil {
if authorized == authorizer.DecisionAllow || err != nil {
t.Errorf("%s: unexpected output: %v %s %v", name, authorized, reason, err)
continue
}
Expand Down
10 changes: 0 additions & 10 deletions pkg/authorization/authorizer/interfaces.go

This file was deleted.

128 changes: 0 additions & 128 deletions pkg/authorization/authorizer/messages.go

This file was deleted.

Loading

0 comments on commit 70b54e7

Please sign in to comment.