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_
217
217
extern NSString * _Nonnull const MSID_FLIGHT_CLIENT_SFRT_STATUS;
218
218
extern NSString * _Nonnull const MSID_FLIGHT_DISABLE_PREFERRED_IDENTITY_CBA;
219
219
extern NSString * _Nonnull const MSID_FLIGHT_SUPPORT_STATE_DUNA_CBA;
220
+ extern NSString * _Nonnull const MSID_FLIGHT_IGNORE_COOKIES_IN_DUNA_RESUME;
220
221
221
222
/* *
222
223
* Flight to indicate if remove account artifacts should be disabled
Original file line number Diff line number Diff line change 89
89
NSString *const MSID_FLIGHT_CLIENT_SFRT_STATUS = @" sfrt_v2" ;
90
90
NSString *const MSID_FLIGHT_DISABLE_PREFERRED_IDENTITY_CBA = @" dis_pre_iden_cba" ;
91
91
NSString *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" ;
92
93
93
94
// Making the flight string short to avoid legacy broker url size limit
94
95
NSString *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
108
108
webRequestConfiguration.startURL = [[NSURL alloc ] initWithString: self .switchBrowserResumeResponse.actionUri];
109
109
NSMutableDictionary *customHeaders = [webRequestConfiguration.customHeaders mutableCopy ] ?: [NSMutableDictionary new ];
110
110
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
+
111
120
webRequestConfiguration.customHeaders = customHeaders;
112
121
113
122
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
+
1
4
Version 1.15.0
2
5
* Query and populate ECC STK in Workplacejoin information for iOS (#1555)
3
6
You can’t perform that action at this time.
0 commit comments