From 11a9f276051c5c64324edc406af4b39702ab9df6 Mon Sep 17 00:00:00 2001 From: Yannick Trinh Date: Mon, 15 Apr 2024 19:13:34 +0200 Subject: [PATCH] Fix useTLS attribute in OAuth2Provider.4dm --- Project/Sources/Classes/OAuth2Provider.4dm | 1 + 1 file changed, 1 insertion(+) diff --git a/Project/Sources/Classes/OAuth2Provider.4dm b/Project/Sources/Classes/OAuth2Provider.4dm index 9d8227c..ca33a6d 100644 --- a/Project/Sources/Classes/OAuth2Provider.4dm +++ b/Project/Sources/Classes/OAuth2Provider.4dm @@ -477,6 +477,7 @@ Function _getToken_SignedIn($bUseRefreshToken : Boolean)->$result : Object var $options : Object:={} $options.port:=_getPortFromURL(This.redirectURI) $options.enableDebugLog:=This.enableDebugLog + $options.useTLS:=(Position("https"; This.redirectURI)=1) If ((This.authenticationPage#Null) || (This.authenticationErrorPage#Null)) var $file : Object:=(This.authenticationPage#Null) ? This.authenticationPage : This.authenticationErrorPage If (OB Instance of($file; 4D.File))