File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ extern NSString * _Nonnull const MSID_FLIGHT_DISABLE_JIT_TROUBLESHOOTING_LEGACY_
217217extern NSString * _Nonnull const MSID_FLIGHT_CLIENT_SFRT_STATUS;
218218extern NSString * _Nonnull const MSID_FLIGHT_DISABLE_PREFERRED_IDENTITY_CBA;
219219extern NSString * _Nonnull const MSID_FLIGHT_SUPPORT_STATE_DUNA_CBA;
220+ extern NSString * _Nonnull const MSID_FLIGHT_IGNORE_COOKIES_IN_DUNA_RESUME;
220221
221222/* *
222223 * Flight to indicate if remove account artifacts should be disabled
Original file line number Diff line number Diff line change 8989NSString *const MSID_FLIGHT_CLIENT_SFRT_STATUS = @" sfrt_v2" ;
9090NSString *const MSID_FLIGHT_DISABLE_PREFERRED_IDENTITY_CBA = @" dis_pre_iden_cba" ;
9191NSString *const MSID_FLIGHT_SUPPORT_STATE_DUNA_CBA = @" support_state_duna_cba" ;
92+ NSString *const MSID_FLIGHT_IGNORE_COOKIES_IN_DUNA_RESUME = @" ignore_cookies_in_duna_resume" ;
9293
9394// Making the flight string short to avoid legacy broker url size limit
9495NSString *const MSID_FLIGHT_DISABLE_REMOVE_ACCOUNT_ARTIFACTS = @" disable_rm_metadata" ;
Original file line number Diff line number Diff line change @@ -108,6 +108,15 @@ - (void)invokeWithRequestParameters:(nonnull MSIDInteractiveTokenRequestParamete
108108 webRequestConfiguration.startURL = [[NSURL alloc ] initWithString: self .switchBrowserResumeResponse.actionUri];
109109 NSMutableDictionary *customHeaders = [webRequestConfiguration.customHeaders mutableCopy ] ?: [NSMutableDictionary new ];
110110 customHeaders[@" Authorization" ] = [NSString stringWithFormat: @" Bearer %@ " , self .switchBrowserResumeResponse.switchBrowserSessionToken];
111+
112+ if (![MSIDFlightManager.sharedInstance boolForKey: MSID_FLIGHT_IGNORE_COOKIES_IN_DUNA_RESUME])
113+ {
114+ if (customHeaders[MSID_REFRESH_TOKEN_CREDENTIAL] && [customHeaders[@" Cookie" ] isEqualToString: @" " ])
115+ {
116+ [customHeaders removeObjectForKey: @" Cookie" ];
117+ }
118+ }
119+
111120 webRequestConfiguration.customHeaders = customHeaders;
112121
113122 NSObject <MSIDWebviewInteracting> *webView = [oauthFactory.webviewFactory webViewWithConfiguration: webRequestConfiguration
Original file line number Diff line number Diff line change 1+ Version 1.15.1
2+ Allow cookies in duna resume request #1574
3+
14Version 1.15.0
25* Query and populate ECC STK in Workplacejoin information for iOS (#1555)
36
You can’t perform that action at this time.
0 commit comments