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

Add new allowGettingAccessTokenWithRefreshToken in MSALSilentTokenPar… #1592

Merged
merged 8 commits into from
Nov 19, 2022

Conversation

kaisong1990
Copy link
Contributor

@kaisong1990 kaisong1990 commented Oct 26, 2022

…ameters public API

Proposed changes

Add new property in MSALSilentTokenParameters public API to allow using local RT as fallback if broker fails

CommonCore change can be found here

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

@kaisong1990 kaisong1990 requested a review from a team as a code owner October 26, 2022 22:40
@@ -872,6 +872,7 @@ - (void)acquireTokenSilentWithParameters:(MSALSilentTokenParameters *)parameters
msidParams.currentRequestTelemetry.schemaVersion = HTTP_REQUEST_TELEMETRY_SCHEMA_VERSION;

Choose a reason for hiding this comment

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

This pull request does not update CHANGELOG.md.

Please consider if this change would be noticeable to a partner or user and either update CHANGELOG.md or resolve this conversation.

Co-authored-by: Juan Arias <juan-arias@users.noreply.github.com>
2. When Sso Extension is not presenting on the device
This parameter is ignored, and tries with existing refresh token in the cache.
*/
@property (nonatomic) BOOL allowGettingAccessTokenWithRefreshToken;
Copy link
Contributor

@antrix1989 antrix1989 Nov 3, 2022

Choose a reason for hiding this comment

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

This name is confusing. Without reading the comment above, there is no hint this logic applies only when SSO ext is available. Can we change it to something like "useSSOExtRTInsteadOfLocalRT"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants