Integration with PlugIn sfauthenticationsession

Integration with PlugIn sfauthenticationsession

  

Dear All 

according to my requirement i have to use below plugin in my outsystems mobile app 

1) https://github.com/MoemenMostafa/cordova-plugin-sfauthenticationsession

and i followed the procedure as mentioned in the below link

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins/Create_a_Plugin_to_Use_Mobile_Capabilities_in_Your_Application


Extenstibility configurations as below 

{

"plugin":

{

"url": "https://github.com/MoemenMostafa/cordova-plugin-sfauthenticationsession",

"identifier": "cordova-plugin-sfauthenticationsession"

}}

but am getting below error while testing it 


97088eb7-fcc2-455b-8810-678e4b8bb972
Time of Log:
2017-12-18 11:52:32
eSpace:
XXXXXXXXX
Tenant:
Users
User:
 (555)
Session Id:
No session
Server:
XXXXXXXXXXX
Module:

Message:
Can't find variable: SFAuthSession
Environment Information
eSpaceVer: 1581 (Id=5232, PubId=5230, CompiledWith=10.0.705.0)
 RequestUrl: https://outsystemsdev/msServices/moduleservices/log?clientTimeInMillis=1513583552192 (Method: POST)
 AppDomain: /LM/W3SVC/1/ROOT/msServices_ADM-813-131580569139497345
 FilePath: C:\...\PS\running\msServices_ADM.438904988\
 ClientIp: 172.18.239.35
 Locale: en-US
 DateFormat: yyyy-MM-dd
 PID: 11188 ('w3wp', Started='11/27/2017 7:25:00 AM', Priv=1046Mb, Virt=18785Mb)
 TID: 68
 Thread Name:
 .NET: 4.0.30319.42000
 Client-Side Log

Hi Rajashekar,

Where are you testing that?

In a device? Which device? In a browser? Which browser?

Cheers,

José

HI Jose

In device as native app .Apple Device , iOS 11.1.2. below is the code

if (parseInt(device.version) >= 11 && device.platform == "iOS"){  
    SFAuthSession.start("customScheme://","https://stage.smartpass.government.net.ae/secure/oauth2/authorize",function(data){alert(data)},function(error){alert(error)})
}

as described in https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins/Create_a_Plugin_to_Use_Mobile_Capabilities_in_Your_Application 

we imported the plugin 




Thanks and Regards

Rajashekar Reddy Ette