Skip to content

Commit bd7bbb9

Browse files
Merge branch 'serverlessworkflow:main' into fix-schema
2 parents b178a8f + 2ac27be commit bd7bbb9

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

dsl-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,10 @@ Defines the mechanism used to authenticate users and workflows attempting to acc
10151015
| Property | Type | Required | Description |
10161016
|----------|:----:|:--------:|-------------|
10171017
| basic | [`basicAuthentication`](#basic-authentication) | `no` | The `basic` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1018-
| bearer | [`basicAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1018+
| bearer | [`bearerAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
10191019
| certificate | [`certificateAuthentication`](#certificate-authentication) | `no` | The `certificate` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
10201020
| digest | [`digestAuthentication`](#digest-authentication) | `no` | The `digest` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1021-
| bearer | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
1021+
| oauth2 | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
10221022

10231023
##### Examples
10241024

@@ -1087,7 +1087,7 @@ Defines the fundamentals of a 'bearer' authentication
10871087

10881088
| Property | Type | Required | Description |
10891089
|----------|:----:|:--------:|-------------|
1090-
| bearer | `string` | `yes` | The bearer token to use. |
1090+
| token | `string` | `yes` | The bearer token to use. |
10911091

10921092
##### Examples
10931093

examples/bearer-auth-uri-format.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
document:
2+
dsl: 1.0.0-alpha1
3+
namespace: examples
4+
name: bearer-auth-uri-format
5+
version: 1.0.0-alpha1
6+
do:
7+
getPetById:
8+
call: http
9+
with:
10+
method: get
11+
endpoint:
12+
uri: https://petstore.swagger.io/v2/pet/1
13+
authentication:
14+
bearer:
15+
token: ${ .token }

examples/bearer-auth.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
document:
2+
dsl: 1.0.0-alpha1
3+
namespace: examples
4+
name: bearer-auth
5+
version: 1.0.0-alpha1
6+
do:
7+
getPetById:
8+
call: http
9+
with:
10+
method: get
11+
endpoint:
12+
uri: https://petstore.swagger.io/v2/pet/{petId}
13+
authentication:
14+
bearer:
15+
token: ${ .token }

schema/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ $defs:
674674
properties:
675675
uri:
676676
type: string
677-
format: uri
677+
format: uri-template
678678
description: The endpoint's URI.
679679
authentication:
680680
description: The authentication policy to use.

0 commit comments

Comments
 (0)