You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Base/OAuth2AuthConfig.swift
+3-14Lines changed: 3 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -26,25 +26,14 @@ import UIKit
26
26
/**
27
27
Simple struct to hold settings describing how authorization appears to the user.
28
28
*/
29
-
publicstructOAuth2AuthConfig{
29
+
publicstructOAuth2AuthConfig:Sendable{
30
30
31
31
/// Sub-stuct holding configuration relevant to UI presentation.
32
-
publicstructUI{
32
+
publicstructUI:Sendable{
33
33
34
34
/// Title to propagate to views handled by OAuth2, such as OAuth2WebViewController.
35
35
publicvartitle:String?=nil
36
36
37
-
/// By assigning your own UIBarButtonItem (!) you can override the back button that is shown in the iOS embedded web view (does NOT apply to `SFSafariViewController` or `ASWebAuthenticationSession`).
38
-
@available(*, deprecated, message:"This will be removed in v6.")
39
-
publicvarbackButton:AnyObject?=nil
40
-
41
-
/// If true it makes the login cancellable, otherwise the cancel button is not shown in the embedded web view.
42
-
@available(*, deprecated, message:"This will be removed in v6.")
43
-
publicvarshowCancelButton=true
44
-
45
-
/// Starting with iOS 9, `SFSafariViewController` will be used for embedded authorization instead of our custom class. You can turn this off here.
46
-
publicvaruseSafariView=false
47
-
48
37
/// Starting with iOS 12, `ASWebAuthenticationSession` can be used for embedded authorization instead of our custom class. You can turn this on here.
49
38
publicvaruseAuthenticationSession=true
50
39
@@ -72,7 +61,7 @@ public struct OAuth2AuthConfig {
72
61
/// Context information for the authorization flow:
73
62
/// - iOS: The parent view controller to present from
74
63
/// - macOS: An NSWindow from which to present a modal sheet _or_ `nil` to present in a new window
0 commit comments