Skip to content

Commit

Permalink
Merge pull request #865 from matthias-pichler-warrify/bearer-token-typo
Browse files Browse the repository at this point in the history
change: documentation fix bearer.token property
  • Loading branch information
cdavernas authored Jun 3, 2024
2 parents cd7c43e + c9c689c commit 0a48db9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dsl-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,10 @@ Defines the mechanism used to authenticate users and workflows attempting to acc
| Property | Type | Required | Description |
|----------|:----:|:--------:|-------------|
| basic | [`basicAuthentication`](#basic-authentication) | `no` | The `basic` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| bearer | [`basicAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| bearer | [`bearerAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| certificate | [`certificateAuthentication`](#certificate-authentication) | `no` | The `certificate` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| digest | [`digestAuthentication`](#digest-authentication) | `no` | The `digest` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| bearer | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |
| oauth2 | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.<br>Required if no other property has been set, otherwise ignored. |

##### Examples

Expand Down Expand Up @@ -1087,7 +1087,7 @@ Defines the fundamentals of a 'bearer' authentication

| Property | Type | Required | Description |
|----------|:----:|:--------:|-------------|
| bearer | `string` | `yes` | The bearer token to use. |
| token | `string` | `yes` | The bearer token to use. |

##### Examples

Expand Down
15 changes: 15 additions & 0 deletions examples/bearer-auth.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
document:
dsl: 1.0.0-alpha1
namespace: examples
name: bearer-auth
version: 1.0.0-alpha1
do:
getPetById:
call: http
with:
method: get
endpoint:
uri: https://petstore.swagger.io/v2/pet/{petId}
authentication:
bearer:
token: ${ .token }

0 comments on commit 0a48db9

Please sign in to comment.