From ac7c75246b9accf689c71a6ac7d62c52d38c5f8e Mon Sep 17 00:00:00 2001 From: Yannick Trinh Date: Tue, 12 Mar 2024 15:45:41 +0100 Subject: [PATCH] Remove some test code --- .../Sources/Methods/_test_method_sblaser.4dm | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 Project/Sources/Methods/_test_method_sblaser.4dm diff --git a/Project/Sources/Methods/_test_method_sblaser.4dm b/Project/Sources/Methods/_test_method_sblaser.4dm deleted file mode 100644 index 4e3e034..0000000 --- a/Project/Sources/Methods/_test_method_sblaser.4dm +++ /dev/null @@ -1,39 +0,0 @@ -//%attributes = {} -// ---------------------------------------------------- -// User name (OS): sblaser -// Date and time: 08.11.23, 09:14:55 -// ---------------------------------------------------- -// Method: _test_method_sblaser -// Description -// -// -// Parameters -// ---------------------------------------------------- - - -var $o_params : Object -var $cs_oAuth : cs.OAuth2Provider -var $v_token : Variant -var $t_privatekey : Text:=File("C:/Users/sblaser/AppData/Local/Temp/O365/Alex/private.pem").getText("ascii"; Document unchanged) - -If (Length($t_privatekey)>0) - $o_params:=New object() - $o_params.name:="Microsoft" - $o_params.permission:="service" - $o_params.clientId:="..." - - //$o_params.clientSecret:="gotcha" - //$o_params.clientSecret - $o_params.scope:="https://graph.microsoft.com/.default" - $o_params.tenant:="...." - $o_params.privateKey:=$t_privatekey - $o_params.clientEmail:="sblaseradm@bossinfo.ch" - $o_params.tokenURI:="https://login.microsoftonline.com/.../oauth2/v2.0/token" - $o_params.authenticateURI:="https://login.microsoftonline.com/.../oauth2/v2.0/authorize" - $o_params.grantType:="client_credentials" - $o_params.clientAssertionType:="urn:ietf:params:oauth:client-assertion-type:jwt-bearer" - $o_params._thumbprint:="..." //thumbprint of certificate / public key can be copied in Azure portal at certificated & secrets - - $cs_oAuth:=cs.OAuth2Provider.new($o_params) - $v_token:=$cs_oAuth.getToken() -End if \ No newline at end of file