File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/active-directory/develop Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ Objective-C
98
98
``` objc
99
99
UIViewController *myParentController = ...;
100
100
WKWebView *myCustomWebView = ...;
101
- MSALWebviewParameters *webViewParameters = [[MSALWebviewParameters alloc ] initWithParentViewController : myParentController] ;
101
+ MSALWebviewParameters *webViewParameters = [[MSALWebviewParameters alloc ] initWithAuthPresentationViewController : myParentController] ;
102
102
webViewParameters.webviewType = MSALWebviewTypeWKWebView;
103
103
webViewParameters.customWebview = myCustomWebView;
104
104
MSALInteractiveTokenParameters * interactiveParameters = [[ MSALInteractiveTokenParameters alloc] initWithScopes:@[ @"myscope"] webviewParameters: webViewParameters ] ;
@@ -109,7 +109,7 @@ Swift
109
109
```swift
110
110
let myParentController: UIViewController = ...
111
111
let myCustomWebView: WKWebView = ...
112
- let webViewParameters = MSALWebviewParameters(parentViewController : myParentController)
112
+ let webViewParameters = MSALWebviewParameters(authPresentationViewController : myParentController)
113
113
webViewParameters.webviewType = MSALWebviewType.wkWebView
114
114
webViewParameters.customWebview = myCustomWebView
115
115
let interactiveParameters = MSALInteractiveTokenParameters(scopes: ["myscope"], webviewParameters: webViewParameters)
You can’t perform that action at this time.
0 commit comments