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.