Skip to content

Commit 11613cf

Browse files
committed
Update README
1 parent 793a9b0 commit 11613cf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ Usage
2727

2828
To use OAuth2 in your own code, start with `import OAuth2` (use `p2_OAuth2` if you installed _p2.OAuth2_ via CocoaPods) in your source files.
2929

30-
A typical code grant flow is used for demo purposes below.
30+
In OAuth2 there are [**different kinds of _flows_**](https://tools.ietf.org/html/rfc6749#page-2).
31+
This library supports all of them, make sure you're using the correct one for your use-case and authorization server.
32+
A typical **code grant flow** is used for demo purposes below.
3133
The steps for other flows are mostly the same short of instantiating a different subclass and using different client settings.
34+
3235
Still not working?
3336
See [site-specific peculiarities](#site-specific-peculiarities).
3437

@@ -50,7 +53,7 @@ let oauth2 = OAuth2CodeGrant(settings: [
5053
```
5154

5255
See those `redirect_uris`?
53-
You can use the scheme you want, but you must **a)** declare the scheme you use in your `Info.plist` and **b)** register the very same URI on the website you connect to.
56+
You can use the scheme you want, but you must **a)** declare the scheme you use in your `Info.plist` and **b)** register the very same URI on the authorization server you connect to.
5457

5558
Note that **as of iOS 9**, you _should_ use [Universal Links](https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html) as your redirect URL, rather than a custom app scheme.
5659
This prevents others from re-using your URI scheme and intercept the authorization flow.

0 commit comments

Comments
 (0)