You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP-76 Allow enforcing the use of raw Authorization header (#77)
Introduce configuration parameter allowing to use
the Authorization header without b64 and prefixing for
Basic Authentication.
Signed-off-by: Adrian Vasiliu <adrian.vasiliu3@gmail.com>
Co-authored-by: Adrian Vasiliu <vasiliu@fr.ibm.com>
Copy file name to clipboardExpand all lines: README.md
+21-19Lines changed: 21 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -385,28 +385,30 @@ In this special case, you can configure connector to trust all certificates with
385
385
To enable this option use `gid.connector.http.security.cert.server.allowSelfSigned` property setting its value to `true`.
386
386
387
387
## Basic Authentication
388
-
Connector supports Basic Authentication mechanism using HTTP `Authorization` header.
389
-
The header value can set via properties same as other headers. Connector will convert passed value to Base64 and use it for request.
390
-
If the used value starts from prefix `Basic `, it will be used as header value as is, without any extra modification.
388
+
The connector supports Basic Authentication mechanism using HTTP `Authorization` header.
389
+
The header value can be set via properties, similarly as for other headers. The connector converts the passed value to Base64 and uses it for the request.
390
+
If the used value starts with the prefix `Basic `, or `gid.connector.http.source.lookup.use-raw-authorization-header`
391
+
is set to `'true'`, it will be used as header value as is, without any extra modification.
| connector | required | The Value should be set to _rest-lookup_|
397
-
| format | required | Flink's format name that should be used to decode REST response, Use `json` for a typical REST endpoint. |
398
-
| url | required | The base URL that should be use for GET requests. For example _http://localhost:8080/client_|
399
-
| asyncPolling | optional | true/false - determines whether Async Pooling should be used. Mechanism is based on Flink's Async I/O. |
400
-
| lookup-method | optional | GET/POST/PUT (and any other) - determines what REST method should be used for lookup REST query. If not specified, `GET` method will be used. |
401
-
| gid.connector.http.lookup.error.code | optional | List of HTTP status codes that should be treated as errors by HTTP Source, separated with comma. |
402
-
| gid.connector.http.lookup.error.code.exclude | optional | List of HTTP status codes that should be excluded from the `gid.connector.http.lookup.error.code` list, separated with comma. |
403
-
| gid.connector.http.security.cert.server | optional | Path to trusted HTTP server certificate that should be add to connectors key store. More than one path can be specified using `,` as path delimiter. |
404
-
| gid.connector.http.security.cert.client | optional | Path to trusted certificate that should be used by connector's HTTP client for mTLS communication. |
405
-
| gid.connector.http.security.key.client | optional | Path to trusted private key that should be used by connector's HTTP client for mTLS communication. |
| gid.connector.http.source.lookup.request.timeout | optional | Sets HTTP request timeout in seconds. If not specified, the default value of 30 seconds will be used. |
408
-
| gid.connector.http.source.lookup.request.thread-pool.size | optional | Sets the size of pool thread for HTTP lookup request processing. Increasing this value would mean that more concurrent requests can be processed in the same time. If not specified, the default value of 8 threads will be used. |
409
-
| gid.connector.http.source.lookup.response.thread-pool.size | optional | Sets the size of pool thread for HTTP lookup response processing. Increasing this value would mean that more concurrent requests can be processed in the same time. If not specified, the default value of 4 threads will be used. |
| connector | required | The Value should be set to _rest-lookup_|
398
+
| format | required | Flink's format name that should be used to decode REST response, Use `json` for a typical REST endpoint. |
399
+
| url | required | The base URL that should be use for GET requests. For example _http://localhost:8080/client_|
400
+
| asyncPolling | optional | true/false - determines whether Async Pooling should be used. Mechanism is based on Flink's Async I/O. |
401
+
| lookup-method | optional | GET/POST/PUT (and any other) - determines what REST method should be used for lookup REST query. If not specified, `GET` method will be used. |
402
+
| gid.connector.http.lookup.error.code | optional | List of HTTP status codes that should be treated as errors by HTTP Source, separated with comma. |
403
+
| gid.connector.http.lookup.error.code.exclude | optional | List of HTTP status codes that should be excluded from the `gid.connector.http.lookup.error.code` list, separated with comma. |
404
+
| gid.connector.http.security.cert.server | optional | Path to trusted HTTP server certificate that should be add to connectors key store. More than one path can be specified using `,` as path delimiter. |
405
+
| gid.connector.http.security.cert.client | optional | Path to trusted certificate that should be used by connector's HTTP client for mTLS communication. |
406
+
| gid.connector.http.security.key.client | optional | Path to trusted private key that should be used by connector's HTTP client for mTLS communication. |
| gid.connector.http.source.lookup.request.timeout | optional | Sets HTTP request timeout in seconds. If not specified, the default value of 30 seconds will be used. |
409
+
| gid.connector.http.source.lookup.request.thread-pool.size | optional | Sets the size of pool thread for HTTP lookup request processing. Increasing this value would mean that more concurrent requests can be processed in the same time. If not specified, the default value of 8 threads will be used. |
410
+
| gid.connector.http.source.lookup.response.thread-pool.size | optional | Sets the size of pool thread for HTTP lookup response processing. Increasing this value would mean that more concurrent requests can be processed in the same time. If not specified, the default value of 4 threads will be used. |
411
+
| gid.connector.http.source.lookup.use-raw-authorization-header | optional | If set to `'true'`, uses the raw value set for the `Authorization` header, without transformation for Basic Authentication (base64, addition of "Basic " prefix). If not specified, defaults to `'false'`. |
0 commit comments