Login authentication like Netflix multiple users for same account in flutter - flutter

I'm creating an trading app in flutter
Imagine that if an user account has an multiple login from different mobile devices if any one the user can change the account password how can I logout from all other user of different device
Or plz instruct me to create an logine authentication like instagram if an user logged in from another device change a password it will automatically logout from other device

The way I see this is that Firebase doesn't allow you to implement this functionality right now so you'll have to get creative with this by :
Keep track of all the devices through name or IMEI from which logins of a particular user is happening
Create a boolean isSignedOutAll for each and every user and check for this at startup
Turn this to true if a user is clicking on Sign Out Of All Devices option
Logout the user if isSignedOutAll is true on a particular device and then change it back to false for that particular device
This is the solution that I can think of now.

Related

is there a way to check if user is currently "signed in with apple" in flutter app?

I have a flutter app with 2 authentication methods:
Based on device id (associated with account during account creation)
Sign in with apple
I need to know whether user is currently signed in with apple on each app launch.
Why I need that:
When device id is not found in my back end, I send user to registration page, where user has 2 options to register:
regular registration
sign in with apple
The problem is that device id can be changed on ios upgrade, app reinstall etc. Therefore if user signed in with apple first time, but then his device id has changed, I want to remove sign in with apple button. Because for that particular case user is supposed to go through regular sign in method where he needs to enter phone number he entered during the registration and if he confirms SMS code, then account is linked to new device id and access is restored. I don't want them to click sign in with apple again, because during regular sign ins I only get tokens from apple and can't get apple id email anymore.
Hopefully that makes sense.
Thank you

User not able to login for sync Outlook calendar events in iOS app - Swift

I have register app in Azure Active Directory for Authentication. User can signin with development but when i upload app to appstore at that time user can not signin. So please suggest me if any setting for App
This problem is based on an inappropriate calendar is selected while creating an event or data not syncing to the server appropriately
Make sure the application is configured properly and check user account is enabled for signin it should not locked out
Try to reset your password and re-login again
Try to clear your browser’s cookies and retry to sign in again
check whether Conditional Access policy and Multi-Factor Authentication is not block user access
Make sure the correct licenses applied to your account.
To fix this issue,you can download and run the Microsoft Support and Recovery Assistant.
If issue remain same please Contact Microsoft support
For your reference :
Problems signing in application
You can't sign in to the portal

Register user biometrinc finger print in flutter

Can we register a biometric fingerprint on the phone in flutter. I search about that on google and found loca_auth flutter plugin but it can only get the list of biometric fingerprints and authenticate fingerprint but what I need is to register biometric fingerprints in the device.
Third party apps do not have the capacity to register/add biometric materials to devices, no matter what platform you are using -- flutter, etc. Here is how the flow works in general.
User gets a new phone (purchased, gifted, found, etc.), a phone that supports biometric authentication.
User goes to Settings and enrolls a biometric template (e.g. enrolls their fingerprint as a way of unlocking the device). In general, this is the only way to register/enroll a fingerprint/face/iris/etc.
Your app wants users to authenticate using biometrics and so implements something similar to what's described here or here.
Now inside your app, when the user clicks to authenticate(), your app never actually sees any biometric materials. Biometric materials are kept in a secure location so that third party apps cannot access them. What your app gets is acknowledgement from the Framework that the fingerprint/face/iris trying to authenticate into your app is indeed enrolled on the device. Checkout the blog posts I mentioned for more details.
You can do this. Just take a look at this:
Fingerprint Authentication in Flutter
Accordingly you also need to set permissions in android manifest file too.

Auto log out from devices

I have a RestAPI which will hit to authenticate the user. This api is to android they hit this api to allow user to login to our app
My requirement is this.1) If user has cell phone say xyz phone with IMEI "xyzz1234". Now if he tries to log in from his 2nd phone than he should not be allowed to login from 2nd phone. He should log out automatically from abc device.
As i am using ionicv1 framework for mobile applications.
You can update the deviceID in your database once the user Sign in on another device.
In your signIN API, validate your deviceID.
For the case of login state saved in your app, you can hit an API at your dashboard on startup which can make the person logout.
This could be one possible approach :)

How to control the iphone power button programmatically?

I want to control the iphone device programmatically.
I mean,when user want to switch off the phone one alert message will come.it will
ask the password then only the operation will work.
when user delete the app from the his/her device one alert will come and ask the
password for the security reasons.
what type of the frame works required for handling the power button as well as the app
control on the device.
I mean,when user want to switch off the phone one alert message will come.it will ask the password then only the operation will work.
You can't
when user delete the app from the his/her device one alert will come and ask the password for the security reasons.
You can't.
But you could use Apple's Configurator to configure iOS devices with profiles of you company. This way the user won't be able to uninstall the app.
The Apple configurator can do lots of other things as well. Think about setting up restrictions, accounts, password, security and other things on the device.
There are even Over The Air Updates possible of you use a Mobile Device Management Server or Service