feature/rename rest_connector_http_header_signature -> rest_connector_sends_x-sign_header

This commit is contained in:
hongwei 2021-11-08 12:52:24 +01:00
parent ce482c1329
commit ac45a044b2
3 changed files with 5 additions and 5 deletions

View File

@ -816,9 +816,9 @@ featured_apis=elasticSearchWarehouseV300
# If Rest Connector do not get the response in the following seconds, it will throw the error message back.
# This props can be omitted, the default value is 59. It should be less than Nginx timeout.
# rest2019_connector_timeout = 59
# If set it to `true`, it will add the signature (SHA256WithRSA) into each the rest connector http calls, and you need to upload the RSA
# private key into the UserAuthContext.
#rest_connector_http_header_signature=false
# If set it to `true`, it will add the x-sign (SHA256WithRSA) into each the rest connector http calls,
# and you need to upload the RSA private key into the UserAuthContext.
#rest_connector_sends_x-sign_header=false
# -- Scopes -----------------------------------------------------

View File

@ -6580,7 +6580,7 @@ trait RestConnector_vMar2019 extends Connector with KafkaHelper with MdcLoggable
callContext: Option[CallContext]
): List[HttpHeader] = {
val needSignatureHead = APIUtil.getPropsAsBoolValue("rest_connector_http_header_signature", false)
val needSignatureHead = APIUtil.getPropsAsBoolValue("rest_connector_sends_x-sign_header", false)
val generalContext = callContext.flatMap(_.toOutboundAdapterCallContext.generalContext).getOrElse(List.empty[BasicGeneralContext])
val headersFromGeneralContext = generalContext.map(generalContext => RawHeader(generalContext.key,generalContext.value))

View File

@ -3,7 +3,7 @@
### Most recent changes at top of file
```
Date Commit Action
01/11/2021 03305d2b Added props: rest_connector_http_header_signature, default is false
01/11/2021 03305d2b Added props: rest_connector_sends_x-sign_header, default is false
17/09/2021 e65cd51d Added props: webui_main_faq_external_link, default is obp static file: /main-faq.html
09/09/2021 65952225 Added props: webui_support_email, default is contact@openbankproject.com
02/09/2021 a826d908 Renamed Web UI props: