HttpClientConfig Since 5.0
Examples
Basic Auth
yaml
baseUrl: http://rd-hds:8080/fhir
auth:
basic:
user: "mario"
password: "itsame"
ssl:
bundle: client
OAuth2 Since 5.1
yaml
baseUrl: http://rd-hds:8080/fhir
auth:
oauth2:
registration: agent
ssl:
bundle: client
Fields
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
baseUrl | String | Yes | Server base URL. | |
auth | AuthMethod | No | NONE | Authentication configuration. |
ssl | SSL | No | SSL Configuration. |
Other Types
AuthMethod Since 5.0
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
basic | HttpClientBasicAuth | No | Basic auth configuration. | |
oauth2 | HttpClientOauth2Auth | No | OAuth2 configuration. | |
cookieToken | HttpClientCookieTokenAuth | No | Cookie token auth configuration. |
SSL Since 5.0
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
bundle | String | Yes | Name of the spring ssl bundle to use for ssl connection. See Agent Configuration/SSL |
HttpClientBasicAuth Since 5.0
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
user | String | Yes | Basic auth username | |
password | String | Yes | Basic auth password |
HttpClientOAuth2Auth Since 5.1
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
registration | String | Yes | Name of the registration defined in application.yaml . See Agent Configuration/OAuth2 |
HttpClientCookieTokenAuth Since 5.0
Field Name | Type | Required | Default | Description |
---|---|---|---|---|
token | String | Yes | Cookie token auth token |