Skip to content

Commit db241a1

Browse files
authored
Update README.md
Mention `oauth2.authConfig.ui.useAuthenticationSession`
1 parent 0083bc1 commit db241a1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ The main configuration you'll use with `oauth2.authConfig` is whether or not to
368368

369369
oauth2.authConfig.authorizeEmbedded = true
370370

371-
Similarly, if you want to take care of dismissing the login screen yourself:
371+
Similarly, if you want to take care of dismissing the login screen yourself (not possible with the newer authorization sessions mentioned below):
372372

373373
oauth2.authConfig.authorizeEmbeddedAutoDismiss = false
374374

@@ -394,6 +394,10 @@ Similar is how you specify custom HTTP headers:
394394
"headers": ["Accept": "application/json, text/plain"]
395395

396396
Starting with version 2.0.1 on iOS 9, `SFSafariViewController` will be used for embedded authorization.
397+
Starting after version 4.2, on iOS 11 (`SFAuthenticationSession`) and iOS 12 (`ASWebAuthenticationSession`), you can opt-in to these newer authorization session view controllers:
398+
399+
oauth2.authConfig.ui.useAuthenticationSession = true
400+
397401
To revert to the old custom `OAuth2WebViewController`:
398402

399403
oauth2.authConfig.ui.useSafariView = false

0 commit comments

Comments
 (0)