diff --git a/README.md b/README.md index e692600..b4179eb 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Add the `OnePasswordExtension.h`, `OnePasswordExtension.m`, and `1Password.xcass ### Use Case #1: Native App Login -In this use case we'll learn how to enable your existing users to fill their credentials into your native app's login form. If your application is using a web view to login (i.e. OAuth), you'll want to follow the web view integration steps in Use Case #3. +In this use case we'll learn how to enable your existing users to fill their credentials into your native app's login form. If your application is using a web view to login (i.e. OAuth), you'll want to follow the web view integration steps in [Use Case #4: Web View Login Support](https://github.com/AgileBits/onepassword-app-extension#use-case-4-web-view-login-support). The first step is to add a UIButton to your login page. Use an existing 1Password image from the _1Password.xcassets_ catalog so users recognize the button. @@ -115,8 +115,8 @@ Next we need to wire up the action for this button to this method in your UIView This code is pretty straight forward: -1. Provide a `URLString` that uniquely identifies your service. For example, if your app required a Twitter login, you would pass in `@"https://twitter.com"`. See _Best Practices_ for details. -2. Pass in the `UIViewController` that you want the share sheet to be presented upon. +1. Provide a `URLString` that uniquely identifies your service. For example, if your app required a Twitter login, you would pass in `@"https://twitter.com"`. See [Best Practices](https://github.com/AgileBits/onepassword-app-extension#best-practices) for details. +2. Pass in the `UIViewController` that you want the activity sheet to be presented upon. 3. Provide a completion block that will be called when the user finishes their selection. This block is guaranteed to be called on the main thread. 4. Extract the needed information from the login dictionary and update your UI elements. @@ -229,9 +229,7 @@ Simply add a button to your UI with its action assigned to this method in your w 1Password will take care of all the details of collecting information about the currently displayed page, allow the user to select the desired login, and then fill the web form details within the page. -If your use-case is an oauth-like scenario, where you do not want other item categories (Credit Cards and Identities) to show up in the 1Password Extension, you need to pass `YES` for `showOnlyLogins`. - -If you want the 1Password Extension to show up in the share sheet along side other extensions, please refer take a look at the detailed instruction for [Advanced Web View filling Support](https://gist.github.com/radazzouz/1f32eca216b1963dfc78#comment-1434211) or download our [sample project](https://com-agilebits-users.s3.amazonaws.com/rad/ACME%20Browser%202.zip). +If you use a web view to login (i.e. OAuth) and you do not want other activities to show up in the activity sheet and other item categories (Credit Cards and Identities) to show up in the 1Password Extension, you need to pass `YES` for `showOnlyLogins`. ## Projects supporting iOS 7.1 and earlier