Skip to content
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

Merged
merged 10 commits into from Jul 31, 2020
Merged

Hieund/sso seeding test app #1021

merged 10 commits into from Jul 31, 2020

Conversation

hieunguyenmsft
Copy link
Contributor

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

  • Feature work
  • Bug fix
  • Documentation
  • Engineering change
  • Test
  • Logging/Telemetry

Risk

  • High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
  • Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
  • Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

@hieunguyenmsft hieunguyenmsft requested a review from a team as a code owner July 29, 2020 04:51
@@ -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;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should be nonatomic

Copy link
Contributor Author

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.

MSAL/test/app/ios/MSALTestAppAcquireTokenViewController.m Outdated Show resolved Hide resolved
MSAL/test/app/ios/MSALTestAppAcquireTokenViewController.m Outdated Show resolved Hide resolved
MSAL/test/app/ios/MSALTestAppAcquireTokenViewController.m Outdated Show resolved Hide resolved
if (self.webviewTypeSegmentControl.selectedSegmentIndex == 0 &&
self.customWebviewTypeSegmentControl.selectedSegmentIndex == TEST_EMBEDDED_WEBVIEW_CUSTOM)
{
[self.customWebview loadHTMLString:@"<html><head></head></html>" baseURL:nil];
Copy link
Member

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?

Copy link
Contributor Author

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.

MSAL/test/app/ios/MSALTestAppAcquireTokenViewController.m Outdated Show resolved Hide resolved
@oldalton oldalton added the 2008 label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants