iosobjective-cswiftauthentication

Handling authentication for multiple apps under the same account - iOS


Working for a company where we are starting to have many small apps, each with their own log in screen.

So that means whenever someone's password changes, they'll have to re enter their password for every app

Can be cumbersome to the user, especially when our policy is to have user's passwords change every 3 months and there are 6 or more apps to enter the password on

Has anyone come up with a work around for this problem where the user would only have to enter their password once? I'm thinking I could have one dedicated app solely for authenticating and then do some kind of interprocess communication if that's even possible

Again, doing this for iOS. I know on Android it wouldn't be an issue because developers can add accounts in the settings screen. However, iOS is a different beast

*Note these are enterprise, in house only apps. Not public facing on the app store


Solution

  • You need to store the username/pwd on keychain and share them between apps as mentioned here

    https://developer.apple.com/documentation/security/keychain_services/keychain_items/sharing_access_to_keychain_items_among_a_collection_of_apps