followben/TPTentClient — pull request #2 by dlinsin (2012-10-07 11:38:34+00:00)
Title: Saving Authentication Credentials

This introduces saving the Authentication Credentials in iOS's Keychain.

It uses a submodule which simplifies the Keychain access tremendously: _UICKeyChainStore_. Unfortunately, it's not ARC compatible so I had to add the flag `-fno-objc-arc` to the two source files.

The credentials are stored once the authorization succeeded and used as soon as an `TPTentHTTPClient`instance is created with the same URL.

Unfortunately, I had to change `AccountViewController` a little bit to adjust the flow.

_Note: there is no error handling or logging out! You'd basically have to login with a different entity in order to overwrite the Keychain entries!_