diff --git a/mocks/oauth/Makefile b/mocks/oauth/Makefile index 61819985df..64723dea25 100644 --- a/mocks/oauth/Makefile +++ b/mocks/oauth/Makefile @@ -1,22 +1,11 @@ # SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors # SPDX-License-Identifier: Apache-2.0 -CERTS_DIR = ../../certs/ - -ssl: - export MSYS_NO_PATHCONV=1; \ - openssl req -x509 -out $(CERTS_DIR)localhost.crt -keyout $(CERTS_DIR)localhost.key \ - -newkey rsa:2048 -nodes -sha256 \ - -subj '/CN=localhost' \ - -addext "subjectAltName = DNS:localhost"; - openssl pkcs12 -export -in $(CERTS_DIR)localhost.crt -inkey $(CERTS_DIR)localhost.key -out $(CERTS_DIR)localhost.p12 -passout "pass:" - start: export MSYS_NO_PATHCONV=1; \ docker start oauth-mock || \ docker run \ --name oauth-mock \ - -v $$(pwd)/$(CERTS_DIR)localhost.p12:/opt/localhost.p12 \ -v $$(pwd)/conf.json:/opt/conf.json \ -p 8083:8080 \ -e JSON_CONFIG_PATH=/opt/conf.json \ diff --git a/mocks/oauth/conf_with_cert.json b/mocks/oauth/conf_with_cert.json deleted file mode 100644 index 3eaca6d548..0000000000 --- a/mocks/oauth/conf_with_cert.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "interactiveLogin": true, - "httpServer": { - "type": "NettyWrapper", - "ssl" : { - "keyPassword" : "", - "keystoreFile" : "/opt/localhost.p12", - "keystoreType" : "PKCS12", - "keystorePassword" : "" - } - }, - "tokenCallbacks": [ - { - "issuerId": "issuer1", - "tokenExpiry": 120, - "requestMappings": [ - { - "requestParam": "scope", - "match": "openid", - "claims": { - "sub": "subByScope", - "aud": [ - "audByScope" - ] - } - } - ] - } - ] -} diff --git a/mocks/oauth/conf_with_cert.json.license b/mocks/oauth/conf_with_cert.json.license deleted file mode 100644 index 7ea22469b1..0000000000 --- a/mocks/oauth/conf_with_cert.json.license +++ /dev/null @@ -1,2 +0,0 @@ -SPDX-FileCopyrightText: Copyright DB InfraGO AG and contributors -SPDX-License-Identifier: Apache-2.0