Skip to content

Commit a0a7613

Browse files
committed
Fix ACI0105045
Netkit: when token expiration is not present, the getToken function do nothing Jobs:ACI0105045 # Conflicts: # Project/Sources/Classes/OAuth2Provider.4dm
1 parent 24b6e3f commit a0a7613

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Project/Sources/Classes/OAuth2Provider.4dm

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,19 @@ The application secret that you created in the app registration portal for your
7070
/*
7171
Any valid existing token
7272
*/
73-
This:C1470.token:=Choose:C955(Value type:C1509($inParams.token)=Is object:K8:27; $inParams.token; Null:C1517)
73+
If (Value type($inParams.token.token)=Is object)
74+
This.token:=$inParams.token.token
75+
Else
76+
This.token:=Choose(Value type($inParams.token)=Is object; $inParams.token; Null)
77+
End if
7478

7579
/*
7680
*/
77-
This:C1470.tokenExpiration:=Choose:C955(Value type:C1509($inParams.tokenExpiration)=Is text:K8:3; $inParams.tokenExpiration; Null:C1517)
81+
If (Value type($inParams.token.tokenExpiration)=Is text)
82+
This.tokenExpiration:=$inParams.token.tokenExpiration
83+
Else
84+
This.tokenExpiration:=Choose(Value type($inParams.tokenExpiration)=Is text; $inParams.tokenExpiration; Null)
85+
End if
7886

7987
/*
8088
*/

0 commit comments

Comments
 (0)