4

我正在构建一个 PhoneGap 应用程序,其中一个要求是支持 SSO(单点登录)。

我有一个支持不同类型身份验证的 Web 应用程序。现在我正在为同一个 Web 应用程序构建一个移动应用程序(使用 PhoneGap),并希望使用相同的身份验证方法从移动设备登录,我用于从 Web 应用程序登录

基本上,PhoneGap 移动应用程序应该使用与用户从桌面登录 Web 应用程序相同的身份验证方法(例如客户门户/SAML/NT Auth 等)

The main problem I'm facing is, if the web application is configured to use Customer Portal for authentication, then the user should be redirected to the portal and after authentication he should be redirected back to the mobile (PhoneGap) application and should get a authentication token which can be used by the mobile app for further requests.

I was trying to use the InAppBrowser/ChildBrowser plugin to open the external URL (customer portal) and post data (authentication token) from InAppBrowser to the PhoneGap mobile app but I'm not sure if this is the correct approach or even if it is feasible.

Please can somebody help me in if the above approach is feasible or is there any other approach I have to take.

Thanks in advance

4

0 回答 0