From 4ad1d2d023f03720bd36bfe0432c6b2f6df4b6f2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bianchi Date: Fri, 6 Sep 2024 14:55:14 +0200 Subject: [PATCH] Added unevaluatedProperties false to oauth2AuthenticationProperties Signed-off-by: Jean-Baptiste Bianchi --- examples/authentication-oauth2-secret.yaml | 18 ++++++++++++++++++ examples/authentication-oidc-secret.yaml | 18 ++++++++++++++++++ schema/workflow.yaml | 2 ++ 3 files changed, 38 insertions(+) create mode 100644 examples/authentication-oauth2-secret.yaml create mode 100644 examples/authentication-oidc-secret.yaml diff --git a/examples/authentication-oauth2-secret.yaml b/examples/authentication-oauth2-secret.yaml new file mode 100644 index 00000000..635076ab --- /dev/null +++ b/examples/authentication-oauth2-secret.yaml @@ -0,0 +1,18 @@ +document: + dsl: 1.0.0-alpha1 + namespace: examples + name: oauth2-authentication + version: 1.0.0-alpha1 +use: + secrets: + - mySecret +do: + - getPet: + call: http + with: + method: get + endpoint: + uri: https://petstore.swagger.io/v2/pet/{petId} + authentication: + oauth2: + use: mySecret \ No newline at end of file diff --git a/examples/authentication-oidc-secret.yaml b/examples/authentication-oidc-secret.yaml new file mode 100644 index 00000000..19c387c1 --- /dev/null +++ b/examples/authentication-oidc-secret.yaml @@ -0,0 +1,18 @@ +document: + dsl: 1.0.0-alpha1 + namespace: examples + name: oidc-authentication + version: 1.0.0-alpha1 +use: + secrets: + - mySecret +do: + - getPet: + call: http + with: + method: get + endpoint: + uri: https://petstore.swagger.io/v2/pet/{petId} + authentication: + oidc: + use: mySecret \ No newline at end of file diff --git a/schema/workflow.yaml b/schema/workflow.yaml index 164f59d1..eca64cb9 100644 --- a/schema/workflow.yaml +++ b/schema/workflow.yaml @@ -924,6 +924,7 @@ $defs: - type: object title: OAuth2ConnectAuthenticationProperties description: The inline configuration of the OAuth2 authentication policy. + unevaluatedProperties: false allOf: - $ref: '#/$defs/oauth2AuthenticationProperties' - type: object @@ -967,6 +968,7 @@ $defs: - $ref: '#/$defs/oauth2AuthenticationProperties' title: OpenIdConnectAuthenticationProperties description: The inline configuration of the OpenIdConnect authentication policy. + unevaluatedProperties: false - $ref: '#/$defs/secretBasedAuthenticationPolicy' title: OpenIdConnectAuthenticationPolicySecret description: Secret based configuration of the OpenIdConnect authentication policy.