Skip to content

Commit e9f47ec

Browse files
committed
Fix ACI0105716
1 parent a3369fa commit e9f47ec

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Project/Sources/Classes/OAuth2Provider.4dm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean) : Object
498498

499499
var $bUseHostDatabaseServer : Boolean:=False
500500
var $hostDatabaseServer : Object:=WEB Server(Web server host database)
501-
If (($hostDatabaseServer#Null)&& $hostDatabaseServer.isRunning)
501+
If (($hostDatabaseServer#Null) && $hostDatabaseServer.isRunning)
502502
If ($options.useTLS)
503503
$bUseHostDatabaseServer:=($hostDatabaseServer.HTTPSEnabled && ($hostDatabaseServer.HTTPSPort=$options.port))
504504
Else
@@ -714,6 +714,13 @@ Function _sendTokenRequest($params : Text) : Object
714714

715715
End case
716716

717+
// If we already had a refresh token, we need to add it to result object in case it was not present in the response
718+
If (Value type($result.token.refresh_token)=Is undefined)
719+
If (OB Is defined(This.token; "refresh_token") && (Length(String(This.token.refresh_token))>0))
720+
$result.token.refresh_token:=This.token.refresh_token
721+
End if
722+
End if
723+
717724
Else
718725

719726
If (cs.Tools.me.webLicenseAvailable)

0 commit comments

Comments
 (0)