New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hieund/sso seeding test app #1021
Conversation
@@ -76,7 +76,7 @@ @interface MSALTestAppAcquireTokenViewController () <UITextFieldDelegate> | |||
@property (nonatomic) IBOutlet UIView *wkWebViewContainer; | |||
@property (nonatomic) WKWebView *customWebview; | |||
@property (weak, nonatomic) IBOutlet UISegmentedControl *authSchemeSegmentControl; | |||
|
|||
@property NSString *accountIdentifier; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be nonatomic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Address, will update in next commit.
if (self.webviewTypeSegmentControl.selectedSegmentIndex == 0 && | ||
self.customWebviewTypeSegmentControl.selectedSegmentIndex == TEST_EMBEDDED_WEBVIEW_CUSTOM) | ||
{ | ||
[self.customWebview loadHTMLString:@"<html><head></head></html>" baseURL:nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this what is loading about:blank?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These code is supposed to be called at the end of the flow (end of the 1st call if no ssoSeeding or end of the ssoSeeding call) so it should do no harm to the auth code grant flow.
I guess the old code purpose us to 'reset' that custom webview but not sure we still need it or not.
I will verify it today and make a new PR if that's redundant code can be removed.
Proposed changes
Update SSO Seeding feature in Test App.
To test it, add the profile with name "CompanyPortal" into profiles list.
For example:
@"CompanyPortal" : @{@"clientId" : @"b6c69a37-df96-4db0-9088-2ab96e1d8215",
@"redirectUri" : @"msalb6c69a37-df96-4db0-9088-2ab96e1d8215://auth"},
Type of change
Risk
Additional information