diff --git a/dsl-reference.md b/dsl-reference.md index f4fd9ad0..5db2f1da 100644 --- a/dsl-reference.md +++ b/dsl-reference.md @@ -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.
Required if no other property has been set, otherwise ignored. | -| bearer | [`basicAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | +| bearer | [`bearerAuthentication`](#bearer-authentication) | `no` | The `bearer` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | | certificate | [`certificateAuthentication`](#certificate-authentication) | `no` | The `certificate` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | | digest | [`digestAuthentication`](#digest-authentication) | `no` | The `digest` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | -| bearer | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | +| oauth2 | [`oauth2`](#oauth2-authentication) | `no` | The `oauth2` authentication scheme to use, if any.
Required if no other property has been set, otherwise ignored. | ##### Examples @@ -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 diff --git a/examples/bearer-auth.yaml b/examples/bearer-auth.yaml new file mode 100644 index 00000000..f4b2227c --- /dev/null +++ b/examples/bearer-auth.yaml @@ -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 }