diff --git a/.gitignore b/.gitignore index be5db615d3..cc9f66b783 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.bin vendor .bin/ .idea diff --git a/Makefile b/Makefile index 77c0654a67..f6dcf6035e 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ export PWD := $(shell pwd) GO_DEPENDENCIES = github.com/ory/go-acc \ github.com/go-swagger/go-swagger/cmd/swagger \ - github.com/ory/cli \ github.com/go-bindata/go-bindata/go-bindata define make-go-dependency @@ -26,9 +25,15 @@ node_modules: package-lock.json .bin/goimports: Makefile GOBIN=$(shell pwd)/.bin go install golang.org/x/tools/cmd/goimports@latest -# Formats the code -.PHONY: format -format: .bin/goimports node_modules +.bin/licenses: Makefile + curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh + +.bin/ory: Makefile + curl https://raw.githubusercontent.com/ory/meta/master/install.sh | bash -s -- -b .bin ory v0.1.47 + touch .bin/ory + +format: .bin/goimports .bin/ory node_modules + .bin/ory dev headers license --exclude=internal/httpclient goimports -w --local github.com/ory . gofmt -l -s -w . npm exec -- prettier --write . @@ -36,13 +41,6 @@ format: .bin/goimports node_modules licenses: .bin/licenses node_modules # checks open-source licenses .bin/licenses -.bin/licenses: Makefile - curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh - -.bin/ory: Makefile - bash <(curl https://raw.githubusercontent.com/ory/meta/master/install.sh) -b .bin ory v0.1.22 - touch -a -m .bin/ory - # Generates the SDK .PHONY: sdk sdk: .bin/swagger .bin/ory node_modules diff --git a/api/credential.go b/api/credential.go index 2e40495fa7..6b3a12e75b 100644 --- a/api/credential.go +++ b/api/credential.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package api import ( diff --git a/api/credential_doc.go b/api/credential_doc.go index 3903245e0d..f6d1ea7b01 100644 --- a/api/credential_doc.go +++ b/api/credential_doc.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api diff --git a/api/credential_test.go b/api/credential_test.go index 60db695a04..81fa40046b 100644 --- a/api/credential_test.go +++ b/api/credential_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package api_test import ( diff --git a/api/decision.go b/api/decision.go index 6872eb594d..ceb082a666 100644 --- a/api/decision.go +++ b/api/decision.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api diff --git a/api/decision_test.go b/api/decision_test.go index 23c8b96ba8..14347fea51 100644 --- a/api/decision_test.go +++ b/api/decision_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api_test diff --git a/api/health.go b/api/health.go index 060d6a9250..e7122f14ce 100644 --- a/api/health.go +++ b/api/health.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package api // Alive returns an ok status if the instance is ready to handle HTTP requests. diff --git a/api/health_test.go b/api/health_test.go index 165c7a7c1e..fe718ddd80 100644 --- a/api/health_test.go +++ b/api/health_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package api_test import ( diff --git a/api/rule.go b/api/rule.go index ddb1bbda35..28a4cd1947 100644 --- a/api/rule.go +++ b/api/rule.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api diff --git a/api/rule_doc.go b/api/rule_doc.go index c085c6f72e..5c77fe0374 100644 --- a/api/rule_doc.go +++ b/api/rule_doc.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api diff --git a/api/rule_test.go b/api/rule_test.go index 4e7a2559b3..1ba3a810db 100644 --- a/api/rule_test.go +++ b/api/rule_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package api_test diff --git a/cmd/clidoc/generate.go b/cmd/clidoc/generate.go index b60297a439..9c289be05e 100644 --- a/cmd/clidoc/generate.go +++ b/cmd/clidoc/generate.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/clidoc/main.go b/cmd/clidoc/main.go index 59d6fa32f8..9776d3251e 100644 --- a/cmd/clidoc/main.go +++ b/cmd/clidoc/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/cmd/credentials.go b/cmd/credentials.go index f19d4b7492..11c1b0eaf2 100644 --- a/cmd/credentials.go +++ b/cmd/credentials.go @@ -1,16 +1,5 @@ -// Copyright © 2019 NAME HERE -// -// 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. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/credentials_generate.go b/cmd/credentials_generate.go index e01a5a3636..d9f0e1371d 100644 --- a/cmd/credentials_generate.go +++ b/cmd/credentials_generate.go @@ -1,16 +1,5 @@ -// Copyright © 2019 NAME HERE -// -// 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. +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/health.go b/cmd/health.go index c5bec24e3f..c9ca1fb84a 100644 --- a/cmd/health.go +++ b/cmd/health.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/cmd/health_alive.go b/cmd/health_alive.go index 8111d932c6..ca48cff47f 100644 --- a/cmd/health_alive.go +++ b/cmd/health_alive.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/cmd/health_ready.go b/cmd/health_ready.go index 245d6a45c4..cd7f7075f1 100644 --- a/cmd/health_ready.go +++ b/cmd/health_ready.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cmd import ( diff --git a/cmd/helpers.go b/cmd/helpers.go index bd008db8c5..6351e18901 100644 --- a/cmd/helpers.go +++ b/cmd/helpers.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/root.go b/cmd/root.go index 88bf3d8dd4..6496eb7987 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/root_test.go b/cmd/root_test.go index fd302d73b3..9f5dbb5b81 100644 --- a/cmd/root_test.go +++ b/cmd/root_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/rules.go b/cmd/rules.go index 60784d00e5..fe2e140281 100644 --- a/cmd/rules.go +++ b/cmd/rules.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/rules_get.go b/cmd/rules_get.go index a707b3b221..94ed12cc4a 100644 --- a/cmd/rules_get.go +++ b/cmd/rules_get.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/rules_list.go b/cmd/rules_list.go index 5213b69f0c..7c7014f2eb 100644 --- a/cmd/rules_list.go +++ b/cmd/rules_list.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/serve.go b/cmd/serve.go index 8caa9e07ec..8ad3548d64 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/cmd/server/banner.go b/cmd/server/banner.go index 189132c9f1..020c52e946 100644 --- a/cmd/server/banner.go +++ b/cmd/server/banner.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package server func banner(version string) string { diff --git a/cmd/server/server.go b/cmd/server/server.go index 577059f46a..357f27dde0 100644 --- a/cmd/server/server.go +++ b/cmd/server/server.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package server import ( diff --git a/cmd/version.go b/cmd/version.go index 468e163310..131e9067c9 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package cmd diff --git a/credentials/fetcher.go b/credentials/fetcher.go index 5c082ddcb0..593d40c8b3 100644 --- a/credentials/fetcher.go +++ b/credentials/fetcher.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/fetcher_default.go b/credentials/fetcher_default.go index 4b87492c22..233b3ef316 100644 --- a/credentials/fetcher_default.go +++ b/credentials/fetcher_default.go @@ -1,23 +1,6 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @Copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - * - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/fetcher_default_test.go b/credentials/fetcher_default_test.go index aab00ea6a2..3f87bf6b44 100644 --- a/credentials/fetcher_default_test.go +++ b/credentials/fetcher_default_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/signer.go b/credentials/signer.go index 62f0eaa09c..e5e2359ee0 100644 --- a/credentials/signer.go +++ b/credentials/signer.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/signer_default.go b/credentials/signer_default.go index 6b8153010e..78d83541f0 100644 --- a/credentials/signer_default.go +++ b/credentials/signer_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/signer_default_integration_test.go b/credentials/signer_default_integration_test.go index c5d256070c..872942cf6e 100644 --- a/credentials/signer_default_integration_test.go +++ b/credentials/signer_default_integration_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials_test import ( diff --git a/credentials/signer_default_test.go b/credentials/signer_default_test.go index f84f189d24..8bca73d4d4 100644 --- a/credentials/signer_default_test.go +++ b/credentials/signer_default_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/verifier.go b/credentials/verifier.go index acaf264560..21f543e0ab 100644 --- a/credentials/verifier.go +++ b/credentials/verifier.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/verifier_default.go b/credentials/verifier_default.go index e1ed43d07d..12efff4b4a 100644 --- a/credentials/verifier_default.go +++ b/credentials/verifier_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/credentials/verifier_default_test.go b/credentials/verifier_default_test.go index dbf3d9c83e..260eedf604 100644 --- a/credentials/verifier_default_test.go +++ b/credentials/verifier_default_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package credentials import ( diff --git a/doc.go b/doc.go index 84f08c14e0..b42c23a24a 100644 --- a/doc.go +++ b/doc.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 // Package main ORY Oathkeeper // diff --git a/doc_swagger.go b/doc_swagger.go index 93db1a1695..41c04669da 100644 --- a/doc_swagger.go +++ b/doc_swagger.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/driver/configuration/config_keys.go b/driver/configuration/config_keys.go index bc80d4c313..9ab36431f7 100644 --- a/driver/configuration/config_keys.go +++ b/driver/configuration/config_keys.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package configuration type Key = string diff --git a/driver/configuration/provider.go b/driver/configuration/provider.go index 5b7d0996bd..13c3c637bd 100644 --- a/driver/configuration/provider.go +++ b/driver/configuration/provider.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package configuration import ( diff --git a/driver/configuration/provider_koanf.go b/driver/configuration/provider_koanf.go index c2390b7de3..ebc2f00d77 100644 --- a/driver/configuration/provider_koanf.go +++ b/driver/configuration/provider_koanf.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package configuration import ( diff --git a/driver/configuration/provider_koanf_private_test.go b/driver/configuration/provider_koanf_private_test.go index 57d8be073e..840b94a967 100644 --- a/driver/configuration/provider_koanf_private_test.go +++ b/driver/configuration/provider_koanf_private_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package configuration diff --git a/driver/configuration/provider_koanf_public_test.go b/driver/configuration/provider_koanf_public_test.go index 906e737e12..c671ac4ae9 100644 --- a/driver/configuration/provider_koanf_public_test.go +++ b/driver/configuration/provider_koanf_public_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package configuration_test import ( diff --git a/driver/driver.go b/driver/driver.go index 39cc3d21a4..e19758283d 100644 --- a/driver/driver.go +++ b/driver/driver.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/driver/driver_default.go b/driver/driver_default.go index 82311de67e..f91d2ad5b8 100644 --- a/driver/driver_default.go +++ b/driver/driver_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/driver/health/event_manager.go b/driver/health/event_manager.go index 322fa1ee46..dfc3c4bd8b 100644 --- a/driver/health/event_manager.go +++ b/driver/health/event_manager.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package health import ( diff --git a/driver/health/event_manager_default.go b/driver/health/event_manager_default.go index ca17d6a5a7..3b0f4278c5 100644 --- a/driver/health/event_manager_default.go +++ b/driver/health/event_manager_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package health import ( diff --git a/driver/health/event_manager_default_test.go b/driver/health/event_manager_default_test.go index ebf18150f1..3f15e0580f 100644 --- a/driver/health/event_manager_default_test.go +++ b/driver/health/event_manager_default_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package health import ( diff --git a/driver/health/readiness.go b/driver/health/readiness.go index 2ce6d530c0..4fe401d645 100644 --- a/driver/health/readiness.go +++ b/driver/health/readiness.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package health type ( diff --git a/driver/registry.go b/driver/registry.go index 11a8ed7630..986c213676 100644 --- a/driver/registry.go +++ b/driver/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/driver/registry_memory.go b/driver/registry_memory.go index ae793b2b7a..259271dd42 100644 --- a/driver/registry_memory.go +++ b/driver/registry_memory.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/driver/registry_memory_test.go b/driver/registry_memory_test.go index 5f43b7621d..75b22e796d 100644 --- a/driver/registry_memory_test.go +++ b/driver/registry_memory_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package driver import ( diff --git a/go_mod_shadow.go b/go_mod_shadow.go index 9c4e8ad2e4..da4b59d8f3 100644 --- a/go_mod_shadow.go +++ b/go_mod_shadow.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + //go:build tools // +build tools diff --git a/helper/bearer.go b/helper/bearer.go index 64740987cf..ae1edad467 100644 --- a/helper/bearer.go +++ b/helper/bearer.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package helper diff --git a/helper/bearer_test.go b/helper/bearer_test.go index 1c3582e388..4a66131c4d 100644 --- a/helper/bearer_test.go +++ b/helper/bearer_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package helper_test import ( diff --git a/helper/errors.go b/helper/errors.go index 7aead8692c..bf92659274 100644 --- a/helper/errors.go +++ b/helper/errors.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package helper diff --git a/internal/cloudstorage/setup.go b/internal/cloudstorage/setup.go index 20531bba11..a4d1189eaa 100644 --- a/internal/cloudstorage/setup.go +++ b/internal/cloudstorage/setup.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cloudstorage import ( diff --git a/internal/cloudstorage/useragent.go b/internal/cloudstorage/useragent.go index 5917a75482..3f056614e4 100644 --- a/internal/cloudstorage/useragent.go +++ b/internal/cloudstorage/useragent.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package cloudstorage import ( diff --git a/internal/driver.go b/internal/driver.go index c6c4793d80..acd19b6f1c 100644 --- a/internal/driver.go +++ b/internal/driver.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package internal import ( diff --git a/main.go b/main.go index 0f105f29b2..5c67d2bb3c 100644 --- a/main.go +++ b/main.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package main diff --git a/metrics/middleware.go b/metrics/middleware.go index 15e45f517d..309aa97384 100644 --- a/metrics/middleware.go +++ b/metrics/middleware.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package metrics import ( diff --git a/metrics/middleware_test.go b/metrics/middleware_test.go index 5c726eef01..7bb4250721 100644 --- a/metrics/middleware_test.go +++ b/metrics/middleware_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package metrics import ( diff --git a/metrics/prometheus.go b/metrics/prometheus.go index f992a83f14..78bffe4107 100644 --- a/metrics/prometheus.go +++ b/metrics/prometheus.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Package contains the collection of prometheus meters/counters // and related update methods package metrics diff --git a/middleware/definitions.go b/middleware/definitions.go index ddefdda9f3..3dcd7aec49 100644 --- a/middleware/definitions.go +++ b/middleware/definitions.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package middleware import ( diff --git a/middleware/grpc_middleware.go b/middleware/grpc_middleware.go index 651a688325..a306e2226b 100644 --- a/middleware/grpc_middleware.go +++ b/middleware/grpc_middleware.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package middleware import ( diff --git a/middleware/grpc_middleware_test.go b/middleware/grpc_middleware_test.go index 3e8f9e2137..d5ea3d5ade 100644 --- a/middleware/grpc_middleware_test.go +++ b/middleware/grpc_middleware_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package middleware_test //go:generate mockgen -destination=grpc_mock_server_test.go -package=middleware_test google.golang.org/grpc/test/grpc_testing TestServiceServer diff --git a/middleware/grpc_mock_server_test.go b/middleware/grpc_mock_server_test.go index b42d1abb46..f01d74aee4 100644 --- a/middleware/grpc_mock_server_test.go +++ b/middleware/grpc_mock_server_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Code generated by MockGen. DO NOT EDIT. // Source: google.golang.org/grpc/test/grpc_testing (interfaces: TestServiceServer) diff --git a/middleware/helpers_test.go b/middleware/helpers_test.go index eaa2bc9d08..942018a96a 100644 --- a/middleware/helpers_test.go +++ b/middleware/helpers_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package middleware import ( diff --git a/pipeline/authn/authenticator.go b/pipeline/authn/authenticator.go index 0f9030ebd2..b70fc92c91 100644 --- a/pipeline/authn/authenticator.go +++ b/pipeline/authn/authenticator.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_anonymous.go b/pipeline/authn/authenticator_anonymous.go index 7ae6e2ffa4..f924227690 100644 --- a/pipeline/authn/authenticator_anonymous.go +++ b/pipeline/authn/authenticator_anonymous.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_anonymous_test.go b/pipeline/authn/authenticator_anonymous_test.go index e06aaf3e27..4e44682df4 100644 --- a/pipeline/authn/authenticator_anonymous_test.go +++ b/pipeline/authn/authenticator_anonymous_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/authenticator_bearer_token.go b/pipeline/authn/authenticator_bearer_token.go index 8a971878e1..d127e17fa1 100644 --- a/pipeline/authn/authenticator_bearer_token.go +++ b/pipeline/authn/authenticator_bearer_token.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_bearer_token_test.go b/pipeline/authn/authenticator_bearer_token_test.go index 4d93cbe0de..b412de20ef 100644 --- a/pipeline/authn/authenticator_bearer_token_test.go +++ b/pipeline/authn/authenticator_bearer_token_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn_test import ( diff --git a/pipeline/authn/authenticator_cookie_session.go b/pipeline/authn/authenticator_cookie_session.go index 816a4f32c1..51df5e460e 100644 --- a/pipeline/authn/authenticator_cookie_session.go +++ b/pipeline/authn/authenticator_cookie_session.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_cookie_session_test.go b/pipeline/authn/authenticator_cookie_session_test.go index 1794637f0a..d654d485ad 100644 --- a/pipeline/authn/authenticator_cookie_session_test.go +++ b/pipeline/authn/authenticator_cookie_session_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn_test import ( diff --git a/pipeline/authn/authenticator_jwt.go b/pipeline/authn/authenticator_jwt.go index dd46e0c3df..d4f0a272ce 100644 --- a/pipeline/authn/authenticator_jwt.go +++ b/pipeline/authn/authenticator_jwt.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_jwt_test.go b/pipeline/authn/authenticator_jwt_test.go index c3d8c973df..bfd920fc04 100644 --- a/pipeline/authn/authenticator_jwt_test.go +++ b/pipeline/authn/authenticator_jwt_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/authenticator_noop.go b/pipeline/authn/authenticator_noop.go index 02eb818762..95cd0ee97f 100644 --- a/pipeline/authn/authenticator_noop.go +++ b/pipeline/authn/authenticator_noop.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_noop_test.go b/pipeline/authn/authenticator_noop_test.go index 6f98bfe39b..8fac451bae 100644 --- a/pipeline/authn/authenticator_noop_test.go +++ b/pipeline/authn/authenticator_noop_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/authenticator_oauth2_client_credentials.go b/pipeline/authn/authenticator_oauth2_client_credentials.go index b3df7d1199..5eda02555f 100644 --- a/pipeline/authn/authenticator_oauth2_client_credentials.go +++ b/pipeline/authn/authenticator_oauth2_client_credentials.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_oauth2_client_credentials_cache_test.go b/pipeline/authn/authenticator_oauth2_client_credentials_cache_test.go index 48f99d845f..c4d1282511 100644 --- a/pipeline/authn/authenticator_oauth2_client_credentials_cache_test.go +++ b/pipeline/authn/authenticator_oauth2_client_credentials_cache_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_oauth2_client_credentials_test.go b/pipeline/authn/authenticator_oauth2_client_credentials_test.go index 4b4b558f59..e3fef72062 100644 --- a/pipeline/authn/authenticator_oauth2_client_credentials_test.go +++ b/pipeline/authn/authenticator_oauth2_client_credentials_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/authenticator_oauth2_introspection.go b/pipeline/authn/authenticator_oauth2_introspection.go index 5290ee086e..62d7ef16f5 100644 --- a/pipeline/authn/authenticator_oauth2_introspection.go +++ b/pipeline/authn/authenticator_oauth2_introspection.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_oauth2_introspection_cache_test.go b/pipeline/authn/authenticator_oauth2_introspection_cache_test.go index b36a2de9d9..959d6a6b82 100644 --- a/pipeline/authn/authenticator_oauth2_introspection_cache_test.go +++ b/pipeline/authn/authenticator_oauth2_introspection_cache_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn import ( diff --git a/pipeline/authn/authenticator_oauth2_introspection_test.go b/pipeline/authn/authenticator_oauth2_introspection_test.go index b145cf3f5b..2e320eee95 100644 --- a/pipeline/authn/authenticator_oauth2_introspection_test.go +++ b/pipeline/authn/authenticator_oauth2_introspection_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/authenticator_test.go b/pipeline/authn/authenticator_test.go index 36b5a1ade3..56fd8d6971 100644 --- a/pipeline/authn/authenticator_test.go +++ b/pipeline/authn/authenticator_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn_test import ( diff --git a/pipeline/authn/authenticator_unauthorized.go b/pipeline/authn/authenticator_unauthorized.go index 5fc87188fe..5053b7a0a8 100644 --- a/pipeline/authn/authenticator_unauthorized.go +++ b/pipeline/authn/authenticator_unauthorized.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn diff --git a/pipeline/authn/authenticator_unauthorized_test.go b/pipeline/authn/authenticator_unauthorized_test.go index cd242996ab..bbe659bcde 100644 --- a/pipeline/authn/authenticator_unauthorized_test.go +++ b/pipeline/authn/authenticator_unauthorized_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authn_test diff --git a/pipeline/authn/registry.go b/pipeline/authn/registry.go index 93b81796a4..55ad4b1fa2 100644 --- a/pipeline/authn/registry.go +++ b/pipeline/authn/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authn type Registry interface { diff --git a/pipeline/authz/authorizer.go b/pipeline/authz/authorizer.go index be3c0098dc..992dacbe94 100644 --- a/pipeline/authz/authorizer.go +++ b/pipeline/authz/authorizer.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz import ( diff --git a/pipeline/authz/authorizer_allow.go b/pipeline/authz/authorizer_allow.go index 117f9e3933..5f646dc19c 100644 --- a/pipeline/authz/authorizer_allow.go +++ b/pipeline/authz/authorizer_allow.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz diff --git a/pipeline/authz/authorizer_allow_test.go b/pipeline/authz/authorizer_allow_test.go index 34f77b5b6d..70abdadb60 100644 --- a/pipeline/authz/authorizer_allow_test.go +++ b/pipeline/authz/authorizer_allow_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz_test diff --git a/pipeline/authz/authorizer_deny.go b/pipeline/authz/authorizer_deny.go index 58429d303c..e99f00206e 100644 --- a/pipeline/authz/authorizer_deny.go +++ b/pipeline/authz/authorizer_deny.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz diff --git a/pipeline/authz/authorizer_deny_test.go b/pipeline/authz/authorizer_deny_test.go index 8aa736399e..d2a39913a1 100644 --- a/pipeline/authz/authorizer_deny_test.go +++ b/pipeline/authz/authorizer_deny_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz_test diff --git a/pipeline/authz/keto_engine_acp_ory.go b/pipeline/authz/keto_engine_acp_ory.go index 79b440c5e0..2b6ba4c491 100644 --- a/pipeline/authz/keto_engine_acp_ory.go +++ b/pipeline/authz/keto_engine_acp_ory.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz diff --git a/pipeline/authz/keto_engine_acp_ory_test.go b/pipeline/authz/keto_engine_acp_ory_test.go index 53e93ed6ad..f7459a7f35 100644 --- a/pipeline/authz/keto_engine_acp_ory_test.go +++ b/pipeline/authz/keto_engine_acp_ory_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package authz_test diff --git a/pipeline/authz/registry.go b/pipeline/authz/registry.go index bc5438d06a..22e6a5b854 100644 --- a/pipeline/authz/registry.go +++ b/pipeline/authz/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz type Registry interface { diff --git a/pipeline/authz/remote.go b/pipeline/authz/remote.go index 800504284e..86e96176bc 100644 --- a/pipeline/authz/remote.go +++ b/pipeline/authz/remote.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz import ( diff --git a/pipeline/authz/remote_json.go b/pipeline/authz/remote_json.go index 1489877752..bc64805ab5 100644 --- a/pipeline/authz/remote_json.go +++ b/pipeline/authz/remote_json.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz import ( diff --git a/pipeline/authz/remote_json_test.go b/pipeline/authz/remote_json_test.go index 9822bf3f1f..2c97a6a06d 100644 --- a/pipeline/authz/remote_json_test.go +++ b/pipeline/authz/remote_json_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz_test import ( diff --git a/pipeline/authz/remote_test.go b/pipeline/authz/remote_test.go index 1f6d7cac1c..9969d61979 100644 --- a/pipeline/authz/remote_test.go +++ b/pipeline/authz/remote_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz_test import ( diff --git a/pipeline/authz/utils.go b/pipeline/authz/utils.go index 36a6881419..0febff9584 100644 --- a/pipeline/authz/utils.go +++ b/pipeline/authz/utils.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package authz import ( diff --git a/pipeline/context.go b/pipeline/context.go index 8d750636f9..9b60811611 100644 --- a/pipeline/context.go +++ b/pipeline/context.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package pipeline import ( diff --git a/pipeline/error.go b/pipeline/error.go index 9d67c4be9f..f84c1690cc 100644 --- a/pipeline/error.go +++ b/pipeline/error.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package pipeline import "github.com/pkg/errors" diff --git a/pipeline/errors/error.go b/pipeline/errors/error.go index 7f95d44cdb..acf2e13198 100644 --- a/pipeline/errors/error.go +++ b/pipeline/errors/error.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/errors/error_json.go b/pipeline/errors/error_json.go index 2a605dddf2..c7b097114a 100644 --- a/pipeline/errors/error_json.go +++ b/pipeline/errors/error_json.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/errors/error_json_test.go b/pipeline/errors/error_json_test.go index 2ca7415d33..f6a666a587 100644 --- a/pipeline/errors/error_json_test.go +++ b/pipeline/errors/error_json_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors_test import ( diff --git a/pipeline/errors/error_redirect.go b/pipeline/errors/error_redirect.go index 9235df1659..355a28bc35 100644 --- a/pipeline/errors/error_redirect.go +++ b/pipeline/errors/error_redirect.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/errors/error_redirect_test.go b/pipeline/errors/error_redirect_test.go index 802ecd83d7..012fdcb65d 100644 --- a/pipeline/errors/error_redirect_test.go +++ b/pipeline/errors/error_redirect_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors_test import ( diff --git a/pipeline/errors/error_www_authenticate.go b/pipeline/errors/error_www_authenticate.go index 2929f1aded..a005d0e106 100644 --- a/pipeline/errors/error_www_authenticate.go +++ b/pipeline/errors/error_www_authenticate.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/errors/error_www_authenticate_test.go b/pipeline/errors/error_www_authenticate_test.go index eb76413f25..6f8067b2ab 100644 --- a/pipeline/errors/error_www_authenticate_test.go +++ b/pipeline/errors/error_www_authenticate_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors_test import ( diff --git a/pipeline/errors/registry.go b/pipeline/errors/registry.go index dfe78a92fb..4cea3b9955 100644 --- a/pipeline/errors/registry.go +++ b/pipeline/errors/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors type ( diff --git a/pipeline/errors/when.go b/pipeline/errors/when.go index fcb4548e60..88bd4a3c80 100644 --- a/pipeline/errors/when.go +++ b/pipeline/errors/when.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/errors/when_test.go b/pipeline/errors/when_test.go index bb2c5f241b..8f0ba98a35 100644 --- a/pipeline/errors/when_test.go +++ b/pipeline/errors/when_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package errors import ( diff --git a/pipeline/mutate/mutator.go b/pipeline/mutate/mutator.go index 2e9b63e326..3945a02208 100644 --- a/pipeline/mutate/mutator.go +++ b/pipeline/mutate/mutator.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate diff --git a/pipeline/mutate/mutator_broken.go b/pipeline/mutate/mutator_broken.go index 512a8c0501..124fca87e8 100644 --- a/pipeline/mutate/mutator_broken.go +++ b/pipeline/mutate/mutator_broken.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate diff --git a/pipeline/mutate/mutator_broken_test.go b/pipeline/mutate/mutator_broken_test.go index 048a8b6175..e2f1f6bfb1 100644 --- a/pipeline/mutate/mutator_broken_test.go +++ b/pipeline/mutate/mutator_broken_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate_test diff --git a/pipeline/mutate/mutator_cookie.go b/pipeline/mutate/mutator_cookie.go index 541d3e2a24..5d1b9bde2a 100644 --- a/pipeline/mutate/mutator_cookie.go +++ b/pipeline/mutate/mutator_cookie.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate import ( diff --git a/pipeline/mutate/mutator_cookie_test.go b/pipeline/mutate/mutator_cookie_test.go index f95364a8e6..01e8e1d5ac 100644 --- a/pipeline/mutate/mutator_cookie_test.go +++ b/pipeline/mutate/mutator_cookie_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate_test import ( diff --git a/pipeline/mutate/mutator_header.go b/pipeline/mutate/mutator_header.go index c1a8c6b7b3..e592686f3c 100644 --- a/pipeline/mutate/mutator_header.go +++ b/pipeline/mutate/mutator_header.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate import ( diff --git a/pipeline/mutate/mutator_header_test.go b/pipeline/mutate/mutator_header_test.go index d75b40974b..63152eabed 100644 --- a/pipeline/mutate/mutator_header_test.go +++ b/pipeline/mutate/mutator_header_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate_test import ( diff --git a/pipeline/mutate/mutator_hydrator.go b/pipeline/mutate/mutator_hydrator.go index 278a5646dc..f9dcfdd7c3 100644 --- a/pipeline/mutate/mutator_hydrator.go +++ b/pipeline/mutate/mutator_hydrator.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate diff --git a/pipeline/mutate/mutator_hydrator_test.go b/pipeline/mutate/mutator_hydrator_test.go index 8141cd85c5..d8e31ea202 100644 --- a/pipeline/mutate/mutator_hydrator_test.go +++ b/pipeline/mutate/mutator_hydrator_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate_test import ( diff --git a/pipeline/mutate/mutator_id_token.go b/pipeline/mutate/mutator_id_token.go index 7c22752d8e..d4c065ad94 100644 --- a/pipeline/mutate/mutator_id_token.go +++ b/pipeline/mutate/mutator_id_token.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate diff --git a/pipeline/mutate/mutator_id_token_test.go b/pipeline/mutate/mutator_id_token_test.go index bce552fa06..c1f5c7bd3f 100644 --- a/pipeline/mutate/mutator_id_token_test.go +++ b/pipeline/mutate/mutator_id_token_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate_test diff --git a/pipeline/mutate/mutator_noop.go b/pipeline/mutate/mutator_noop.go index aacd365b7e..581f545d78 100644 --- a/pipeline/mutate/mutator_noop.go +++ b/pipeline/mutate/mutator_noop.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate diff --git a/pipeline/mutate/mutator_noop_test.go b/pipeline/mutate/mutator_noop_test.go index 6c3b1f90d5..fdb027e758 100644 --- a/pipeline/mutate/mutator_noop_test.go +++ b/pipeline/mutate/mutator_noop_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package mutate_test diff --git a/pipeline/mutate/registry.go b/pipeline/mutate/registry.go index b7c2e9dcdd..0b75a25452 100644 --- a/pipeline/mutate/registry.go +++ b/pipeline/mutate/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package mutate type Registry interface { diff --git a/pipeline/rule.go b/pipeline/rule.go index 56360d0fe1..aebdfd02cc 100644 --- a/pipeline/rule.go +++ b/pipeline/rule.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package pipeline import ( diff --git a/proxy/proxy.go b/proxy/proxy.go index 7ce978fceb..5f8ce49a87 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package proxy diff --git a/proxy/proxy_test.go b/proxy/proxy_test.go index fe588c82a1..1bcda8cc3f 100644 --- a/proxy/proxy_test.go +++ b/proxy/proxy_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package proxy_test diff --git a/proxy/request_handler.go b/proxy/request_handler.go index b9fbd3b20b..463cf5dc38 100644 --- a/proxy/request_handler.go +++ b/proxy/request_handler.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package proxy diff --git a/proxy/request_handler_test.go b/proxy/request_handler_test.go index 080e25d259..9f6604b87b 100644 --- a/proxy/request_handler_test.go +++ b/proxy/request_handler_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package proxy_test diff --git a/proxy/response_writer.go b/proxy/response_writer.go index de6a99771c..98a7ed5ef9 100644 --- a/proxy/response_writer.go +++ b/proxy/response_writer.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package proxy diff --git a/rule/doc.go b/rule/doc.go index a39aec6a94..8fe82139d9 100644 --- a/rule/doc.go +++ b/rule/doc.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + // Package rule implements management capabilities for rules // // A rule is used to decide what to do with requests that are hitting the ORY Oathkeeper proxy server. A rule must diff --git a/rule/engine_glob.go b/rule/engine_glob.go index 585a2c46e8..a670026d57 100644 --- a/rule/engine_glob.go +++ b/rule/engine_glob.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/engine_glob_test.go b/rule/engine_glob_test.go index 98b9429287..0a0eeb318e 100644 --- a/rule/engine_glob_test.go +++ b/rule/engine_glob_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/engine_regexp.go b/rule/engine_regexp.go index 2cacdf3529..58d00ec490 100644 --- a/rule/engine_regexp.go +++ b/rule/engine_regexp.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/engine_regexp_test.go b/rule/engine_regexp_test.go index f8d312d824..a37a63ae8c 100644 --- a/rule/engine_regexp_test.go +++ b/rule/engine_regexp_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/fetcher.go b/rule/fetcher.go index 1cf0c493fc..01338e17f7 100644 --- a/rule/fetcher.go +++ b/rule/fetcher.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/fetcher_default.go b/rule/fetcher_default.go index be3e613b0c..3052e32408 100644 --- a/rule/fetcher_default.go +++ b/rule/fetcher_default.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/fetcher_default_test.go b/rule/fetcher_default_test.go index 948edd0000..a9a80f3a42 100644 --- a/rule/fetcher_default_test.go +++ b/rule/fetcher_default_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule_test import ( diff --git a/rule/matcher.go b/rule/matcher.go index 16d1fed5c0..116bf578c3 100644 --- a/rule/matcher.go +++ b/rule/matcher.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/matcher_test.go b/rule/matcher_test.go index 211df24c0e..8399934b1f 100644 --- a/rule/matcher_test.go +++ b/rule/matcher_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/matching_engine.go b/rule/matching_engine.go index 257143c30d..d3be372802 100644 --- a/rule/matching_engine.go +++ b/rule/matching_engine.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/readiness/rule_readiness.go b/rule/readiness/rule_readiness.go index f1ab54b63c..57776c8f96 100644 --- a/rule/readiness/rule_readiness.go +++ b/rule/readiness/rule_readiness.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package readiness import ( diff --git a/rule/readiness/rule_readiness_test.go b/rule/readiness/rule_readiness_test.go index 769f7b59d0..7147ab140b 100644 --- a/rule/readiness/rule_readiness_test.go +++ b/rule/readiness/rule_readiness_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package readiness import ( diff --git a/rule/registry.go b/rule/registry.go index ffe12daa52..0355693f5f 100644 --- a/rule/registry.go +++ b/rule/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule type Registry interface { diff --git a/rule/repository.go b/rule/repository.go index 520b0b63b4..188e837dfb 100644 --- a/rule/repository.go +++ b/rule/repository.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/repository_memory.go b/rule/repository_memory.go index bee897a770..6e6a7648a6 100644 --- a/rule/repository_memory.go +++ b/rule/repository_memory.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/repository_test.go b/rule/repository_test.go index 26a52bd9ba..4ebf0b4184 100644 --- a/rule/repository_test.go +++ b/rule/repository_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/rule.go b/rule/rule.go index e91108def1..3410264292 100644 --- a/rule/rule.go +++ b/rule/rule.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/rule_migrator.go b/rule/rule_migrator.go index 48ab0e4f58..7e3ec4d7c4 100644 --- a/rule/rule_migrator.go +++ b/rule/rule_migrator.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/rule_migrator_test.go b/rule/rule_migrator_test.go index 4ef2e5d0e0..ae0dff171e 100644 --- a/rule/rule_migrator_test.go +++ b/rule/rule_migrator_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package rule import ( diff --git a/rule/rule_test.go b/rule/rule_test.go index acb3daeec5..4318ad78da 100644 --- a/rule/rule_test.go +++ b/rule/rule_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule @@ -204,7 +187,7 @@ func TestRule_UnmarshalJSON(t *testing.T) { "description": "description", "authorizers": "nil", "match": { "authority": "example.com", "full_method": "/full/method" } -} +} `, expected: Rule{ ID: "123", @@ -221,7 +204,7 @@ func TestRule_UnmarshalJSON(t *testing.T) { "description": "description", "authorizers": "nil", "match": { "url": "example.com/some/method", "methods": ["GET", "PUT"] } -} +} `, expected: Rule{ ID: "123", diff --git a/rule/validator.go b/rule/validator.go index a3c2859feb..9ce390ef90 100644 --- a/rule/validator.go +++ b/rule/validator.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule diff --git a/rule/validator_test.go b/rule/validator_test.go index 85f30085d5..b22b0ee1a5 100644 --- a/rule/validator_test.go +++ b/rule/validator_test.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package rule_test diff --git a/spec/embed.go b/spec/embed.go index 7994653a0d..c6d75e26a4 100644 --- a/spec/embed.go +++ b/spec/embed.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package spec import "embed" diff --git a/test/e2e/okapi/main.go b/test/e2e/okapi/main.go index e396a91949..5fc94f2864 100644 --- a/test/e2e/okapi/main.go +++ b/test/e2e/okapi/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/test/e2e/okclient/main.go b/test/e2e/okclient/main.go index 9e26163a55..f376440036 100644 --- a/test/e2e/okclient/main.go +++ b/test/e2e/okclient/main.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package main import ( diff --git a/x/compare.go b/x/compare.go index 97c29d3422..5edd560788 100644 --- a/x/compare.go +++ b/x/compare.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x func OrDefaultString(val, defaultVal string) string { diff --git a/x/deepcopy.go b/x/deepcopy.go index f2fda249a0..ddd0af576c 100644 --- a/x/deepcopy.go +++ b/x/deepcopy.go @@ -1,22 +1,5 @@ -/* - * Copyright © 2017-2018 Aeneas Rekkas - * - * 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. - * - * @author Aeneas Rekkas - * @copyright 2017-2018 Aeneas Rekkas - * @license Apache-2.0 - */ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 package x diff --git a/x/deepcopy_test.go b/x/deepcopy_test.go index e97813a347..682bb38501 100644 --- a/x/deepcopy_test.go +++ b/x/deepcopy_test.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/header/header.go b/x/header/header.go index 7ec2bcbd39..b9480e890a 100644 --- a/x/header/header.go +++ b/x/header/header.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package header import "net/textproto" diff --git a/x/registry.go b/x/registry.go index 4bf1033ab7..16ff0b6c0e 100644 --- a/x/registry.go +++ b/x/registry.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/router.go b/x/router.go index 6e3a755593..857ea1b688 100644 --- a/x/router.go +++ b/x/router.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/template.go b/x/template.go index 211e3f7c78..7a56c38f86 100644 --- a/x/template.go +++ b/x/template.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/testhelper.go b/x/testhelper.go index 85f2cbe1b4..b39a15f03d 100644 --- a/x/testhelper.go +++ b/x/testhelper.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/trace.go b/x/trace.go index 464512fc8b..6e6d7e5dbd 100644 --- a/x/trace.go +++ b/x/trace.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/url.go b/x/url.go index ecd51dffa5..7975c180f6 100644 --- a/x/url.go +++ b/x/url.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x import ( diff --git a/x/version.go b/x/version.go index a430512e8c..9750f3933b 100644 --- a/x/version.go +++ b/x/version.go @@ -1,3 +1,6 @@ +// Copyright © 2022 Ory Corp +// SPDX-License-Identifier: Apache-2.0 + package x const UnknownVersion = "master"