Skip to content

Commit

Permalink
Fix license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
brancz committed Sep 26, 2018
1 parent 76ed863 commit 7a8722d
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 4 deletions.
20 changes: 18 additions & 2 deletions pkg/authn/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2017 Frederic Branczyk All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package authn

// AuthnHeaderConfig contains authentication header settings which enable more information about the user identity to be sent to the upstream
Expand All @@ -14,7 +30,7 @@ type AuthnHeaderConfig struct {
GroupSeparator string
}

// AuthnConfig holds all configurations related to authentication options
// AuthnConfig holds all configurations related to authentication options
type AuthnConfig struct {
X509 *X509Config
Header *AuthnHeaderConfig
Expand All @@ -24,4 +40,4 @@ type AuthnConfig struct {
// X509Config holds public client certificate used for authentication requests if specified
type X509Config struct {
ClientCAFile string
}
}
16 changes: 16 additions & 0 deletions pkg/authn/delegating.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2017 Frederic Branczyk All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package authn

import (
Expand Down
18 changes: 17 additions & 1 deletion pkg/authn/oidc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2017 Frederic Branczyk All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package authn

import (
Expand All @@ -18,7 +34,7 @@ type OIDCConfig struct {
SupportedSigningAlgs []string
}

// NewOIDCAuthenticator returns OIDC authenticator
// NewOIDCAuthenticator returns OIDC authenticator
func NewOIDCAuthenticator(config *OIDCConfig) (authenticator.Request, error) {
tokenAuthenticator, err := oidc.New(oidc.Options{
IssuerURL: config.IssuerURL,
Expand Down
16 changes: 16 additions & 0 deletions pkg/proxy/proxy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2017 Frederic Branczyk All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package proxy

import (
Expand Down
18 changes: 17 additions & 1 deletion pkg/proxy/proxy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2017 Frederic Branczyk All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package proxy

import (
Expand Down Expand Up @@ -94,7 +110,7 @@ func setupTestScenario() []testCase {
authorizer: approver{},
},
expected: expected{
status: http.StatusOK,
status: http.StatusOK,
verifyUser: true,
},
},
Expand Down

0 comments on commit 7a8722d

Please sign in to comment.