cordova - sso on multiple hybrid applications - android

I have a situation here to develop multiple (3 in my case) Hybrid applications all which needs user authentication. All the apps are under a SSO.
I want to achieve the following.
When any app for first time is opened user should be shown logic
screen where he enters credentials and is authenticated.
When user opens another apps then as he already signed in previous
app he should be directly taken to home screen without again asking
for credentials.

Related

SSO Login in Android between two apps

I have two apps .
If user authenticates itself on app1 and launches app 2 then we want second app to authenticate the user based on login of app 1.
In short we want to bypass login in second app(SSO).
One way to achieve it is through content provider.
Is there any other way to achieve this on android.

User sign in for popular mobile apps and session management

I'm in process of developing a mobile app using Ionic framework for Android. In process of development, I came across couple of questions:
I'm building a SignUp/SignIn page, in case if the user is not registered, he will register and if already registered then user will login. Once when the user is logged in and if user close the app and come back, he is still logged in, how is that maintained?
for ex: like Amazon, when the user add some items to cart and close the app, cart is retained even when user re opens the app. Is it like, server should store such information or how can that be achieved?
Please suggest, thanks in advance.
You can save the session token after logging in and use it when logging on to the application.
During the launch of the application, you simply need to check whether the token is saved, if not, then open the login page.

How "Login With Facebook" Mechanism work in Android to communicate with other app?

I had developed 4 Apps.
Main App
App Alpha
App Beta
App Gama
All 4 Apps have same Login with email option, and user can login with same email address and password like Gmail, Google Keep and Google Photos do.
So, I want to make Login with Main App Options, So if user is signed in Main App in same device, when they click from other app's Login With Main App button, other app should communicate with Main App and get token from thek and do autologin for.[Same as FB messenger and FB Main app login functionality]
So How its possible in Android ?
Deeplink ? Shared Preference ? Or Any other technique ?
If I am understanding this correctly. Its because of the Facebook Login feature. If you already logged in with Facebook or connect that app to it. It is automatically logging in as long as the Facebook session on your phone is still active. Which on the phone it can last theoretically indefinitely until server maintenance in which is where they usually ask you to change your password.
So how does it log in? Built in framework to allow it to be done.

Stop being asked for permission each time user login with twitter account in my app

I am using febric for android twitter integration, and I could successfully login from Twitter native App to my app. But it always asks user to allow sharing account details.
Below are the screen
After i allow another screen comes
Why it asks for allow each time user login with same account, since it should be asked only for (the first) one time for each user? How can I solve it?

Same permissions Facebook app

Currenly I have an Facebook app. I want to create a IOS and Android app as well. Does the user need to give permissions again and can I use the same information that is available on the Facebook app?
No, once your facebook app asks for user to give permission (which fires the browser if facebook app is not installed on the mobile, and the facebook app if installed), if your app is already approved by the user - and you're not asking for further permissions than were approved by the user on your web app - your mobile app will be approved automatically.
The behavior should be as follows:
If the user is not currently logged in to facebook (on the facebook app or mobile web). When the user runs your app for the first time, your app calls the login API, either facebook app or the browser opens (on iOS, you see the window sliding out and the facebook app slides in). The user will be prompted to log in. After logging in, control will be switched back to your app.
If the user is currently logged in to facebook. When the user runs your app for the first time, your app calls the login API, either facebook app or the mobile browser opens. Shortly afterwards, without any user intervention, the it will switch back to your app (on iOS, you'll just see the windows sliding twice - out of your app and in again).

Categories

Resources