Skip to content

Commit 6a52595

Browse files
authored
Merge pull request #1008 from neuroglia-io/fix-1007-conflicting-oauth2-policy-oneof
Added unevaluatedProperties false to oauth2AuthenticationProperties
2 parents 62ff5e8 + 4ad1d2d commit 6a52595

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
document:
2+
dsl: 1.0.0-alpha1
3+
namespace: examples
4+
name: oauth2-authentication
5+
version: 1.0.0-alpha1
6+
use:
7+
secrets:
8+
- mySecret
9+
do:
10+
- getPet:
11+
call: http
12+
with:
13+
method: get
14+
endpoint:
15+
uri: https://petstore.swagger.io/v2/pet/{petId}
16+
authentication:
17+
oauth2:
18+
use: mySecret
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
document:
2+
dsl: 1.0.0-alpha1
3+
namespace: examples
4+
name: oidc-authentication
5+
version: 1.0.0-alpha1
6+
use:
7+
secrets:
8+
- mySecret
9+
do:
10+
- getPet:
11+
call: http
12+
with:
13+
method: get
14+
endpoint:
15+
uri: https://petstore.swagger.io/v2/pet/{petId}
16+
authentication:
17+
oidc:
18+
use: mySecret

schema/workflow.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,7 @@ $defs:
924924
- type: object
925925
title: OAuth2ConnectAuthenticationProperties
926926
description: The inline configuration of the OAuth2 authentication policy.
927+
unevaluatedProperties: false
927928
allOf:
928929
- $ref: '#/$defs/oauth2AuthenticationProperties'
929930
- type: object
@@ -967,6 +968,7 @@ $defs:
967968
- $ref: '#/$defs/oauth2AuthenticationProperties'
968969
title: OpenIdConnectAuthenticationProperties
969970
description: The inline configuration of the OpenIdConnect authentication policy.
971+
unevaluatedProperties: false
970972
- $ref: '#/$defs/secretBasedAuthenticationPolicy'
971973
title: OpenIdConnectAuthenticationPolicySecret
972974
description: Secret based configuration of the OpenIdConnect authentication policy.

0 commit comments

Comments
 (0)