Clicky

iOS Dev Nugget 232 Shared Web Credentials: Logging Into iOS app with Password Saved with Safari

.

Need to run a code review on your codebase? Hire me

In iOS 8, Apple has added Shared Web Credentials which lets you share login information between your iOS app and Safari. Adding support for Shared Web Credentials consists of 2 parts:

  1. Serving up a site association file on your website.
  2. Reading/writing to the keychain in your iOS app.

Note that sharing of login is 2-way, so when your user logs in manually with username/password or changes password in your app, it's also helpful to save it into the keychain so your website can use it (when accessed with Safari).

Detailed instruction is available at Apple.


Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No

.

.

Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter

.

View archives of past issues