Skip to content

Commit 0a48db9

Browse files
authored
Merge pull request #865 from matthias-pichler-warrify/bearer-token-typo
change: documentation fix bearer.token property
2 parents cd7c43e + c9c689c commit 0a48db9

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

dsl-reference.md

+3-3
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.yaml

+15
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 }

0 commit comments

Comments
 (0)