Phonegap single sign on

I am creating a PhoneGap application where one of the requirements is SSO (Single Sign On) support.

I have a web application that supports various types of authentication. Now I am creating a mobile application (using PhoneGap) for the same web application and want to use the same authentication method for logging in from a mobile that I use to log in from the web application.

Basically, the PhoneGap mobile application should use the same authentication method (for example, the client portal / SAML / NT Auth, etc.) that the user uses to log into the web application from the desktop

The main problem that I encountered is that if the web application is configured to use the client portal for authentication, then the user should be redirected to the portal, and after authentication, he should be redirected back to the mobile application (PhoneGap) and should receive authentication token that can be used by the mobile application for further requests.

I tried to use the InAppBrowser / ChildBrowser plugin to open an external URL (client portal) and send data (authentication token) from InAppBrowser to the PhoneGap mobile application, but I'm not sure if this is the right approach or even if it is possible.

Please help me if the above approach is possible or is there any other approach I should take.

Thank you in advance

+4
source share

Source: https://habr.com/ru/post/1469237/


All Articles