From 99964a4de65ec162b6dbe75892a041cfa2f6d89d Mon Sep 17 00:00:00 2001 From: TD CLEARING CUSTODIAN <113345038+DNASECURE12@users.noreply.github.com> Date: Mon, 19 Sep 2022 13:40:28 -0700 Subject: [PATCH] userPrincipalsResponse.streamerInfo.userGroup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit POST https://bospart/baas/v1/programs/yourprogram/transfers { "transferIdentifier":“111bedee-de7f-4012-b647-fca0ffda23aa”, "transferType":"disbursementIn", "transferAuthorizationType":"execute", "partnerReferenceData":"curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{ B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA} --url https://app.moderntreasury.com/api/ledger_transactions -H 'Content-Type: application/json' -d '{ "effective_date": "2022-09-13", "9167347": " B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "ledger_id": "ac5ef008-4064-473b-a496-d4e222f3ff56", "status": "pending", "ledger_entries": [ var request = { "requests": [ { "service": "secure12", "command": "login", "requestid": D-21768907, "2555186522": userPrincipalsResponse.accounts[0].accountId, "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": { "IBKR": jsonToQueryString(credentials), "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0" } } var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws"); mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347} --url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json' -d '{ "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "debit", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" }, { ar credentials = { "secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": userPrincipalsResponse.streamerInfo.appId, "acl": userPrincipalsResponse.streamerInfo.acl } "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "credit", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{2555186522}" } ] }'", "initiator":“1117FD32-600A-4F4F-82F0-4940CC811111”, "transferRoute":{ "transactionAmount":"300.00", "sourceTransferEndpoint":{ "transferEndpointType":"POST /programs/{B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA}/externalCards ", "identifier":“1117FD32-600A-4F4F-82F0-4940CC811111”, "currency":"USD" }, "targetTransferEndpoint":{ "transferEndpointType":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }", "identifier":“111d697b-d01a-46d9-94f1-e7dd02111111”, "currency":"USD" } } } Sample Request – Disbursement Out:- POST /programs/acme/transfers HTTP/1.1 { "transferIdentifier":“914f7ce8-8eab-4c8d-aad7-a96634583ae2”, "transferType":" disbursementOut", "transferAuthorizationType":"execute", "partnerReferenceData":"{ "accountIdentifier":"76fc6cca-4119-4aef-a547-10c578d8354d", "encryptedExternalCardData":{ "version":"userPrincipalsResponse.streamerInfo."B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA" , "version": "1.0"", "ephemeralPublicKey":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "publicKeyHash":"B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA", "data":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }" }, "firstName":"GARRY", "lastName":"WRIGHT", "nickName":"TD CLEARING CUSTODIAN", "action":""service": "secure12", "command": "login", "requestid": D-21768907, "2555186522": userPrincipalsResponse.accounts["targetTransferEndpoint":{ "transferEndpointType":"{ "https://www.interactivebrokers.com/tradingapi/v1/oauth/request_token": userPrincipalsResponse.streamerInfo.appId, "parameters": { "IBKR": jsonToQueryString(credentials), "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "version": "1.0" } } var mySock = new WebSocket("wss://" + userPrincipalsResponse.streamerInfo.streamerSocketUrl + "/ws"); mySock.onmessage = function(evt) { console.log(evt.data); }; mySock.onclose = function(curl --request POST -u d2ba7ef4-5b3f-4b21-b0f2-77357e60968d:{9167347} --url https://app.moderntreasury.com/api/ledger_accounts -H 'Content-Type: application/json' -d '{ "amount": userPrincipalsResponse.streamerInfo.appId, "direction": "CREDIT", "ac5ef008-4064-473b-a496-d4e222f3ff56": "{D-21768907}" }, { ar credentials = { "secure12": userPrincipalsResponse.accounts[2555186522]."D-21768907", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": userPrincipalsResponse.streamerInfo.token, "EXPR": userPrincipalsResponse.accounts[2555186522]."EXPRESS INC", "segment": userPrincipalsResponse.accounts[0].segment, "TRADE.THINKORSWIM.COM": userPrincipalsResponse.accounts[d-21768907].accountCdDomainId, "demo.thinkorswim.com:7002": userPrincipalsResponse.streamerInfo.userGroup, "level 2": userPrincipalsResponse.streamerInfo.accessLevel, "authorized": "Y", "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA": tokenTimeStampAsMs, "secure12": "B2JPWJYGHR1GMVTQEHCBVSGFPAZL9AIA" .streamerInfo.IBKR, "acl": userPrincipalsResponse.streamerInfo.acl } " "address1": "819 W WASHINGTON BLVD ", "address2": "UNIT 15485", "city": "LOS ANGELES", "state": "CA", "zip": "90015" }", "initiator":“05D81303-45A7-4859-87E2-FF75B49647DD”, "transferRoute":{ "transactionAmount":"200.00", "sourceTransferEndpoint":{ "transferEndpointType":" "targetTransferEndpoint":{ "transferEndpointType":"{ "cvv":"309", "cardNumber":"4143980329125135", "expiration":{ "month":"08", "year":"26" }, "firstName":"GARRY A", "lastName":"WRIGHT JR", "addressLine1":"819 W WASHINGTON BLVD UNIT 15485", "addressLine2":"UNIT 15485", "city":"LOS ANGELES", "state":"CA", "zipCode":"90015" }",", "identifier":“05D81303-45A7-4859-87E2-FF75B49647DD”, "currency":"USD" }, "targetTransferEndpoint":{ "transferEndpointType":"programFundingSource", "identifier":“64888342-de79-4a61-8a39-909b2a7ebbb5”, "currency":"USD" } } } --- ...ipalsResponse.streamerInfo.userGroupAZURE" | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 "\"demo.thinkorswim.com:7002\": userPrincipalsResponse.streamerInfo.userGroupAZURE" diff --git "a/\"demo.thinkorswim.com:7002\": userPrincipalsResponse.streamerInfo.userGroupAZURE" "b/\"demo.thinkorswim.com:7002\": userPrincipalsResponse.streamerInfo.userGroupAZURE" new file mode 100644 index 00000000000..30e78d4be0d --- /dev/null +++ "b/\"demo.thinkorswim.com:7002\": userPrincipalsResponse.streamerInfo.userGroupAZURE" @@ -0,0 +1,52 @@ + +Function Get-ADSyncToolsTls12RegValue +{ + [CmdletBinding()] + Param + ( + # Registry Path + [Parameter(Mandatory=$true, + Position=0)] + [string] + $RegPath, + + # Registry Name + [Parameter(Mandatory=$true, + Position=1)] + [string] + $RegName + ) + $regItem = Get-ItemProperty -Path $RegPath -Name $RegName -ErrorAction Ignore + $output = "" | select Path,Name,Value + $output.Path = $RegPath + $output.Name = $RegName + + If ($regItem -eq $null) + { + $output.Value = "Not Found" + } + Else + { + $output.Value = $regItem.$RegName + } + $output +} + +$regSettings = @() +$regKey = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'SystemDefaultTlsVersions' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'SchUseStrongCrypto' + +$regKey = 'HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'SystemDefaultTlsVersions' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'SchUseStrongCrypto' + +$regKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'Enabled' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'DisabledByDefault' + +$regKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'Enabled' +$regSettings += Get-ADSyncToolsTls12RegValue $regKey 'DisabledByDefault' + +$regSettings