@@ -127,20 +127,20 @@ Class constructor($inParams : Object)
127127 is received correctly in signed in mode
128128 If not present the default page is used
129129*/
130- If ((Value type ($inParams .authenticationPage )= Is text) && cs .Tools .me .isValidURL (String ($inParams .authenticationPage )))
130+ If ((Value type ($inParams .authenticationPage )= Is text) && cs ._Tools .me .isValidURL (String ($inParams .authenticationPage )))
131131 This .authenticationPage := String ($inParams .authenticationPage )
132132 Else
133- This .authenticationPage := cs .Tools .me .retainFileObject ($inParams .authenticationPage)
133+ This .authenticationPage := cs ._Tools .me .retainFileObject ($inParams .authenticationPage)
134134 End if
135135/*
136136 Path of the web page to display in the webbrowser when the authentication server
137137 returns an error in signed in mode
138138 If not present the default page is used
139139*/
140- If ((Value type ($inParams .authenticationErrorPage )= Is text) && cs .Tools .me .isValidURL (String ($inParams .authenticationErrorPage )))
140+ If ((Value type ($inParams .authenticationErrorPage )= Is text) && cs ._Tools .me .isValidURL (String ($inParams .authenticationErrorPage )))
141141 This .authenticationErrorPage := String ($inParams .authenticationErrorPage )
142142 Else
143- This .authenticationErrorPage := cs .Tools .me .retainFileObject ($inParams .authenticationErrorPage)
143+ This .authenticationErrorPage := cs ._Tools .me .retainFileObject ($inParams .authenticationErrorPage)
144144 End if
145145/*
146146 Indicates whether your application can refresh access tokens when the user is not
@@ -512,13 +512,13 @@ Function _getAuthorizationCode() : Text
512512Function _getToken_SignedIn ($bUseRefreshToken : Boolean) : Object
513513
514514 var $result : Object:= Null
515- var $params : cs .URL := cs .URL .new ()
515+ var $params : cs ._URL := cs ._URL .new ()
516516 var $bSendRequest : Boolean:= True
517517 If ($bUseRefreshToken)
518518
519519 $params .addQueryParameter ("client_id" ; This .clientId)
520520 If (Length (This .scope )> 0)
521- $params .addQueryParameter ("scope" ; cs.Tools .me.urlEncode (This .scope ))
521+ $params .addQueryParameter ("scope" ; cs._Tools .me.urlEncode (This .scope ))
522522 End if
523523 $params .addQueryParameter ("refresh_token" ; This .token.refresh_token)
524524 $params .addQueryParameter ("grant_type" ; "refresh_token" )
@@ -531,7 +531,7 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
531531 If (Length (String (This .redirectURI ))> 0)
532532
533533 var $options : Object:= {}
534- $options .port := cs .Tools .me .getPortFromURL (This .redirectURI)
534+ $options .port := cs ._Tools .me .getPortFromURL (This .redirectURI)
535535 $options .enableDebugLog := This .enableDebugLog
536536 $options .useTLS := (Position ("https" ; This .redirectURI )= 1)
537537 If ((Value type (This .authenticationPage )= Is object) || (Value type (This .authenticationErrorPage )= Is object))
@@ -557,7 +557,7 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
557557 End if
558558 End if
559559
560- If ($bUseHostDatabaseServer || cs .Tools .me .startWebServer ($options ))
560+ If ($bUseHostDatabaseServer || cs ._Tools .me .startWebServer ($options ))
561561
562562 var $authorizationCode : Text:= This ._getAuthorizationCode ()
563563
@@ -566,14 +566,14 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
566566 $params .addQueryParameter ("client_id" ; This .clientId)
567567 $params .addQueryParameter ("grant_type" ; "authorization_code" )
568568 $params .addQueryParameter ("code" ; $authorizationCode )
569- $params .addQueryParameter ("redirect_uri" ; cs.Tools .me.urlEncode (This .redirectURI ))
569+ $params .addQueryParameter ("redirect_uri" ; cs._Tools .me.urlEncode (This .redirectURI ))
570570 If (This .PKCEEnabled )
571571 $params .addQueryParameter ("code_verifier" ; This .codeVerifier)
572572 End if
573573 If (Length (This .clientSecret )> 0)
574574 $params .addQueryParameter ("client_secret" ; This .clientSecret)
575575 End if
576- $params .addQueryParameter ("scope" ; cs.Tools .me.urlEncode (This .scope ))
576+ $params .addQueryParameter ("scope" ; cs._Tools .me.urlEncode (This .scope ))
577577
578578 Else
579579
@@ -607,7 +607,7 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
607607Function _getToken_Service () : Object
608608
609609 var $result : Object:= Null
610- var $params : cs .URL := cs .URL .new ()
610+ var $params : cs ._URL := cs ._URL .new ()
611611 var $jwt : cs .JWT := cs .JWT .new (This .privateKey)
612612 var $options : Object
613613 var $bearer : Text
@@ -628,7 +628,7 @@ Function _getToken_Service() : Object
628628
629629 $bearer := $jwt .generate ($options )
630630
631- $params .addQueryParameter ("grant_type" ; cs.Tools .me.urlEncode (This .grantType ))
631+ $params .addQueryParameter ("grant_type" ; cs._Tools .me.urlEncode (This .grantType ))
632632 $params .addQueryParameter ("assertion" ; $bearer )
633633
634634 : (This ._useJWTBearerAssertionType ())
@@ -648,15 +648,15 @@ Function _getToken_Service() : Object
648648 // See documentation of https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#second-case-access-token-request-with-a-certificate
649649 $params .addQueryParameter ("grant_type" ; This .grantType)
650650 $params .addQueryParameter ("client_id" ; This .clientId)
651- $params .addQueryParameter ("scope" ; cs.Tools .me.urlEncode (This .scope ))
652- $params .addQueryParameter ("client_assertion_type" ; cs.Tools .me.urlEncode (This .clientAssertionType ))
651+ $params .addQueryParameter ("scope" ; cs._Tools .me.urlEncode (This .scope ))
652+ $params .addQueryParameter ("client_assertion_type" ; cs._Tools .me.urlEncode (This .clientAssertionType ))
653653 $params .addQueryParameter ("client_assertion" ; $bearer )
654654
655655 Else
656656
657657 $params .addQueryParameter ("client_id" ; This .clientId)
658658 If (Length (This .scope )> 0)
659- $params .addQueryParameter ("scope" ; cs.Tools .me.urlEncode (This .scope ))
659+ $params .addQueryParameter ("scope" ; cs._Tools .me.urlEncode (This .scope ))
660660 End if
661661 $params .addQueryParameter ("client_secret" ; This .clientSecret)
662662 $params .addQueryParameter ("grant_type" ; This .grantType)
@@ -753,7 +753,7 @@ Function _sendTokenRequest($params : Text) : Object
753753 * copy the raw response body in a private member of the class
754754 */
755755 var $blob : Blob
756- CONVERT FROM TEXT ($response ; cs .Tools .me .getHeaderValueParameter ($contentType ; "charset" ; "UTF-8" ); $blob )
756+ CONVERT FROM TEXT ($response ; cs ._Tools .me .getHeaderValueParameter ($contentType ; "charset" ; "UTF-8" ); $blob )
757757 This ._internals ._rawBody := 4D.Blob.new($blob)
758758 $result := Null
759759
@@ -768,7 +768,7 @@ Function _sendTokenRequest($params : Text) : Object
768768
769769 Else
770770
771- If (cs .Tools .me .webLicenseAvailable )
771+ If (cs ._Tools .me .webLicenseAvailable )
772772 This ._throwError (4 ) // Timeout error
773773 Else
774774 This ._throwError (11 ) // License error
@@ -953,16 +953,16 @@ Function get authenticateURI() : Text
953953 var $scope : Text:= This .scope
954954 var $state : Text:= This .state
955955 var $redirectURI : Text:= This .redirectURI
956- var $urlParams : cs .URL := cs .URL .new ()
956+ var $urlParams : cs ._URL := cs ._URL .new ()
957957
958958 $urlParams .addQueryParameter ("client_id" ; This .clientId)
959959 $urlParams .addQueryParameter ("response_type" ; "code" )
960960 If (Length (String ($scope ))> 0)
961- $urlParams .addQueryParameter ("scope" ; cs.Tools .me.urlEncode ($scope ))
961+ $urlParams .addQueryParameter ("scope" ; cs._Tools .me.urlEncode ($scope ))
962962 End if
963- $urlParams .addQueryParameter ("state" ; cs.Tools .me.urlEncode (String ($state )))
963+ $urlParams .addQueryParameter ("state" ; cs._Tools .me.urlEncode (String ($state )))
964964 $urlParams .addQueryParameter ("response_mode" ; "query" )
965- $urlParams .addQueryParameter ("redirect_uri" ; cs.Tools .me.urlEncode ($redirectURI ))
965+ $urlParams .addQueryParameter ("redirect_uri" ; cs._Tools .me.urlEncode ($redirectURI ))
966966 If (This .PKCEEnabled )
967967 $urlParams .addQueryParameter ("code_challenge" ; This ._generateCodeChallenge (This .codeVerifier ))
968968 $urlParams .addQueryParameter ("code_challenge_method" ; String (This .PKCEMethod ))
@@ -978,7 +978,7 @@ Function get authenticateURI() : Text
978978 End if
979979 End if
980980 If (Length (String (This .nonce ))> 0)
981- $urlParams .addQueryParameter ("nonce" ; cs.Tools .me.urlEncode (This .nonce ))
981+ $urlParams .addQueryParameter ("nonce" ; cs._Tools .me.urlEncode (This .nonce ))
982982 End if
983983
984984 $authenticateURI + = $urlParams .getQueryString ()
0 commit comments