In this example the contextualizer is configured to call an endpoint using the HTTP GET
method with the subject id being part of the url path. As the endpoint requires the X-My-Session-Cookie
cookie for subject authentication purposes, forward_cookies
is used to achieve this.
id: foo
type: generic
config:
endpoint:
url: https://some-other.service/users/{{.Subject.ID}}
method: GET
forward_cookies:
- X-My-Session-Cookie