diff --git a/docs/docs/pipeline.md b/docs/docs/pipeline.md index 584193090d..553b332edd 100644 --- a/docs/docs/pipeline.md +++ b/docs/docs/pipeline.md @@ -93,7 +93,7 @@ type MatchContext struct { To use the subject extract to the token ```json -{ "config_field": "{{ print .subject }}" } +{ "config_field": "{{ print .Subject }}" } ``` To use any arbitrary header value from the request headers diff --git a/docs/versioned_docs/version-v0.37/pipeline/index.md b/docs/versioned_docs/version-v0.37/pipeline/index.md index c9650ec6f4..01c75c8c26 100644 --- a/docs/versioned_docs/version-v0.37/pipeline/index.md +++ b/docs/versioned_docs/version-v0.37/pipeline/index.md @@ -87,7 +87,7 @@ type MatchContext struct { To use the subject extract to the token ```json -{ "config_field": "{{ print .subject }}" } +{ "config_field": "{{ print .Subject }}" } ``` To use an embedded value in the `Extra` map (most of the time, it's a JWT token @@ -97,7 +97,7 @@ claim) { "config_field": "{{ print .Extra.some.arbitrary.data }}" } ``` -To use a Regex capture from the request URL +To use a Regex capture from the request URL Note the usage of `printIndex` to print a value from the array ```json diff --git a/docs/versioned_docs/version-v0.38/pipeline.md b/docs/versioned_docs/version-v0.38/pipeline.md index 584193090d..553b332edd 100644 --- a/docs/versioned_docs/version-v0.38/pipeline.md +++ b/docs/versioned_docs/version-v0.38/pipeline.md @@ -93,7 +93,7 @@ type MatchContext struct { To use the subject extract to the token ```json -{ "config_field": "{{ print .subject }}" } +{ "config_field": "{{ print .Subject }}" } ``` To use any arbitrary header value from the request headers