diff --git a/README.md b/README.md index d0de784e58..949aa76f91 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +**Note:** This repository is modified from oauth2-proxy for applications that support proxy wasm. For more details, refer to [Higress OIDC Wasm Plugin](https://github.com/alibaba/higress/tree/main/plugins/wasm-go/extensions/oidc). + ![OAuth2 Proxy](docs/static/img/logos/OAuth2_Proxy_horizontal.svg) [![Continuous Integration](https://github.com/oauth2-proxy/oauth2-proxy/actions/workflows/ci.yaml/badge.svg)](https://github.com/oauth2-proxy/oauth2-proxy/actions/workflows/ci.yaml) diff --git a/pkg/mapstructure/decode_hooks.go b/pkg/mapstructure/decode_hooks.go index d9b7730c0f..a8f3ad124c 100644 --- a/pkg/mapstructure/decode_hooks.go +++ b/pkg/mapstructure/decode_hooks.go @@ -1,3 +1,15 @@ +// Copyright (c) 2013 Mitchell Hashimoto + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. + package mapstructure import ( diff --git a/pkg/mapstructure/error.go b/pkg/mapstructure/error.go index 47a99e5af3..798f71f1a0 100644 --- a/pkg/mapstructure/error.go +++ b/pkg/mapstructure/error.go @@ -1,3 +1,15 @@ +// Copyright (c) 2013 Mitchell Hashimoto + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. + package mapstructure import ( diff --git a/pkg/mapstructure/mapstructure.go b/pkg/mapstructure/mapstructure.go index 0d50634e45..29f12b1a91 100644 --- a/pkg/mapstructure/mapstructure.go +++ b/pkg/mapstructure/mapstructure.go @@ -1,3 +1,15 @@ +// Copyright (c) 2013 Mitchell Hashimoto + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in +// all copies or substantial portions of the Software. + // Package mapstructure exposes functionality to convert one arbitrary // Go type into another, typically to convert a map[string]interface{} // into a native Go structure. diff --git a/pkg/providers/go_oidc/jose.go b/pkg/providers/go_oidc/jose.go index a1dbbfae6d..b82fa75ec3 100644 --- a/pkg/providers/go_oidc/jose.go +++ b/pkg/providers/go_oidc/jose.go @@ -1,3 +1,17 @@ +// Copyright (c) 2022 Alibaba Group Holding Ltd. +// +// 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 go_oidc import jose "github.com/go-jose/go-jose/v4" diff --git a/pkg/providers/go_oidc/jwks.go b/pkg/providers/go_oidc/jwks.go index 0542a1b938..3e550217cb 100644 --- a/pkg/providers/go_oidc/jwks.go +++ b/pkg/providers/go_oidc/jwks.go @@ -1,3 +1,17 @@ +// Copyright (c) 2022 Alibaba Group Holding Ltd. +// +// 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 go_oidc import ( diff --git a/pkg/providers/go_oidc/oidc.go b/pkg/providers/go_oidc/oidc.go index 56e9265542..4dd1558a20 100644 --- a/pkg/providers/go_oidc/oidc.go +++ b/pkg/providers/go_oidc/oidc.go @@ -1,3 +1,17 @@ +// Copyright (c) 2022 Alibaba Group Holding Ltd. +// +// 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 go_oidc import ( diff --git a/pkg/providers/go_oidc/verify.go b/pkg/providers/go_oidc/verify.go index 34f5bf8d67..574f2f77e7 100644 --- a/pkg/providers/go_oidc/verify.go +++ b/pkg/providers/go_oidc/verify.go @@ -1,3 +1,17 @@ +// Copyright (c) 2022 Alibaba Group Holding Ltd. +// +// 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 go_oidc import (