From c227114082fd031626633f248ac3b11074bdfaf0 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 15 Nov 2023 15:15:07 +0100 Subject: [PATCH] Synced application.yml for local development --- oidc-playground-client/package.json | 8 ++++---- oidc-playground-client/yarn.lock | 6 +++--- oidc-playground-server/src/main/resources/application.yml | 6 +++--- .../src/test/java/playground/AbstractIntegrationTest.java | 2 +- .../src/test/java/playground/api/OidcTest.java | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/oidc-playground-client/package.json b/oidc-playground-client/package.json index 0251c20..bc5965d 100644 --- a/oidc-playground-client/package.json +++ b/oidc-playground-client/package.json @@ -24,10 +24,10 @@ "react-tooltip": "^3.10.0" }, "scripts": { - "start": "PORT=3006 react-scripts start", - "build": "react-scripts build", - "test": "react-scripts test", - "eject": "react-scripts eject" + "why DANGEROUSLY_DISABLE_HOST_CHECK": "https://stackoverflow.com/questions/70374005/invalid-options-object-dev-server-has-been-initialized-using-an-options-object", + "start": "DANGEROUSLY_DISABLE_HOST_CHECK=true PORT=3006 react-scripts start", + "build": "DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts build", + "test": "DANGEROUSLY_DISABLE_HOST_CHECK=true react-scripts test" }, "eslintConfig": { "extends": "react-app" diff --git a/oidc-playground-client/yarn.lock b/oidc-playground-client/yarn.lock index 3be8b17..ca295b4 100644 --- a/oidc-playground-client/yarn.lock +++ b/oidc-playground-client/yarn.lock @@ -3309,9 +3309,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001093, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001426: - version "1.0.30001436" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001436.tgz#22d7cbdbbbb60cdc4ca1030ccd6dea9f5de4848b" - integrity sha512-ZmWkKsnC2ifEPoWUvSAIGyOYwT+keAaaWPHiQ9DfMqS1t6tfuyFYoWR78TeZtznkEQ64+vGXH9cZrElwR2Mrxg== + version "1.0.30001562" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001562.tgz" + integrity sha512-kfte3Hym//51EdX4239i+Rmp20EsLIYGdPkERegTgU19hQWCRhsRFGKHTliUlsry53tv17K7n077Kqa0WJU4ng== case-sensitive-paths-webpack-plugin@^2.4.0: version "2.4.0" diff --git a/oidc-playground-server/src/main/resources/application.yml b/oidc-playground-server/src/main/resources/application.yml index 4478d04..cc52317 100644 --- a/oidc-playground-server/src/main/resources/application.yml +++ b/oidc-playground-server/src/main/resources/application.yml @@ -16,14 +16,14 @@ server: max-http-form-post-size: 10000000 oidc: -# discovery_endpoint: "https://connect.test2.surfconext.nl/oidc/.well-known/openid-configuration" + discovery_endpoint: "https://connect.test2.surfconext.nl/oidc/.well-known/openid-configuration" # Use this when you want to test against a local instance of OIDC-NG - discovery_endpoint: "http://localhost:8080/oidc/.well-known/openid-configuration" +# discovery_endpoint: "http://localhost:8080/oidc/.well-known/openid-configuration" client_id: "playground_client" secret: "secret" jwt_secret: "very-long-long-long-long-long-secret" resource_server_id: "resource-server-playground-client" - resource_server_secret: "secret" + resource_server_secret: "l36VaA1YXR9gG7Pw9POuiQ60h1rU3IhfT5kC" redirect_uri: "http://localhost:3006/redirect" redirect_uri_form_post: "http://localhost:3006/oidc/api/redirect" client_redirect_uri: "http://localhost:3006/redirect" diff --git a/oidc-playground-server/src/test/java/playground/AbstractIntegrationTest.java b/oidc-playground-server/src/test/java/playground/AbstractIntegrationTest.java index e87207a..ea75959 100644 --- a/oidc-playground-server/src/test/java/playground/AbstractIntegrationTest.java +++ b/oidc-playground-server/src/test/java/playground/AbstractIntegrationTest.java @@ -33,7 +33,7 @@ public abstract class AbstractIntegrationTest implements URLSupport { protected ACR acr; @Before - public void before() throws IOException { + public void before() { RestAssured.port = port; } diff --git a/oidc-playground-server/src/test/java/playground/api/OidcTest.java b/oidc-playground-server/src/test/java/playground/api/OidcTest.java index e1efc3b..2539481 100644 --- a/oidc-playground-server/src/test/java/playground/api/OidcTest.java +++ b/oidc-playground-server/src/test/java/playground/api/OidcTest.java @@ -31,7 +31,7 @@ public class OidcTest extends AbstractIntegrationTest { - private TypeRef> mapTypeRef = new TypeRef>() { + private final TypeRef> mapTypeRef = new TypeRef<>() { }; @Rule