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

update new var in configuration to allow user by pass URI check #1013

Merged
merged 3 commits into from Jul 25, 2020

Conversation

hieunguyenmsft
Copy link
Contributor

Proposed changes

Update MSAL Public configuration to allow user to enable bypass RedirectURI check for SSO Seeding feature.

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

@@ -95,6 +95,12 @@ to target MSAL at a specific test slice & flight. These apply to all requests ma
*/
- (nonnull instancetype)initWithClientId:(NSString *)clientId;

/**
Default is disable
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a little bit more detailed comment such as developer would understand why it is needed?

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, I will update in next commit.

{
return nil;
}

BOOL brokerCapable = [MSALRedirectUri redirectUriIsBrokerCapable:redirectURI];
BOOL brokerCapable = !bypassRedirectValidation && [MSALRedirectUri redirectUriIsBrokerCapable:redirectURI];
Copy link
Member

Choose a reason for hiding this comment

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

bypassing of Redirect URI validation shouldn't impact whether URL is broker capable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought we designed to forward the request to broker only when the redirectURI is verified? I might misunderstand the purpose of verifying redirectURI in MSAL.

Copy link
Member

Choose a reason for hiding this comment

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

My bad, I've misread the code :) So this is to ensure that we don't forward request to broker, unless redirect was validated.

@hieunguyenmsft hieunguyenmsft merged commit a3098a8 into dev Jul 25, 2020
hieunguyenmsft added a commit that referenced this pull request Jul 30, 2020
* update new var in configuration to allow user by pass URI check

merge CHANGELOG
hieunguyenmsft added a commit that referenced this pull request Jul 30, 2020
* update new var in configuration to allow user by pass URI check

merge to cherry-pick
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

2 participants