Skip to content

Commit

Permalink
Merge pull request #1008 from neuroglia-io/fix-1007-conflicting-oauth…
Browse files Browse the repository at this point in the history
…2-policy-oneof

Added unevaluatedProperties false to oauth2AuthenticationProperties
  • Loading branch information
cdavernas authored Sep 6, 2024
2 parents 62ff5e8 + 4ad1d2d commit 6a52595
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/authentication-oauth2-secret.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions examples/authentication-oidc-secret.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions schema/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6a52595

Please sign in to comment.