-
Notifications
You must be signed in to change notification settings - Fork 145
Use single FRT [MSAL] #2550
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
Use single FRT [MSAL] #2550
Conversation
# Conflicts: # MSAL/IdentityCore
Cloned PR for jarias/use-single-frt AI description (iteration 1)PR ClassificationNew feature PR SummaryThis pull request introduces functionality to check and update the status of Family Refresh Tokens (FRT) in the cache.
|
"Added
AI-generated content may be incorrect " |
"AI code review (iteration 1) /**
Temporal property to disable Family Refresh Token. This will be removed in future, added to allow 1P apps to disable this feature themselves.
Enabled by default, also configured to be enabled/disabled remotely by Microsoft.
*/ This comment refers to line 33 to 35 in the new file. |
Cloned PR for jarias/use-single-frt AI description (iteration 1)PR ClassificationNew feature implementation. PR SummaryThis pull request introduces the functionality to check and update the Family Refresh Token (FRT) settings based on feature flags.
|
"Added
AI-generated content may be incorrect " |
"AI code review (iteration 1) Here is the suggested code:
This comment refers to line 33 in the new file. |
"AI code review (iteration 1)
This comment refers to line 33 to 35 in the new file. |
Cloned PR for jarias/use-single-frt AI description (iteration 1)PR ClassificationNew feature PR SummaryThis pull request introduces a new feature to check and update Family Refresh Token (FRT) settings based on feature flags.
|
# Conflicts: # changelog.md
@@ -29,10 +29,17 @@ class MSALNativeAuthRequestContext: MSIDRequestContext { | |||
private let _correlationId: UUID | |||
private let _telemetryRequestId: String | |||
private var _serverCorrelationId: UUID? // TODO: Setting the server correlation id here is wrong. Needs refactoring. | |||
var disableFRT: Bool |
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.
do we need it to be public property?
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.
Property 'disableFRT' must be as accessible as its enclosing type because it matches a requirement in protocol 'MSIDRequestContext'
This can change if there is an equivalent to MSALGlobalConfig in CommonCore (the other PR)
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.
This is no longer needed, removed.
@@ -469,6 +470,20 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N | |||
} | |||
break; | |||
} | |||
case MSIDFamilyRefreshTokenType: | |||
{ | |||
MSIDRefreshToken *refreshToken = (MSIDRefreshToken *) token; |
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.
should we do "isKindOfClass" before casting?
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.
The switch is reading credentialType
from each individual class; but it was casting to the base class instead of the right class. Updated
@@ -365,6 +366,20 @@ - (NSView *)outlineView:(NSOutlineView *)outlineView viewForTableColumn:(NSTable | |||
MSIDBaseToken *token = (MSIDBaseToken *)item; | |||
switch (token.credentialType) | |||
{ | |||
case MSIDFamilyRefreshTokenType: | |||
{ | |||
MSIDRefreshToken *refreshToken = (MSIDRefreshToken *) token; |
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.
same here: isKindOfClass?
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.
Same as above
# Conflicts: # CHANGELOG.md # MSAL/IdentityCore
… use method from MSIDAccountCredentialCache instead.
- MSAL/IdentityCore
Proposed changes
Add support to the new FRT in test apps.
Type of change
Risk
Additional information