Skip to content

Commit 354203f

Browse files
authored
Merge pull request #1552 from AzureAD/swagup/cc/byredirecturlvalidationfornativeEdgeBrowserSSO
ByPass RedirectUrlValidation for Native Edge Browser SSO flow
2 parents 6a54b11 + 6eb1add commit 354203f

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

IdentityCore/src/broker_operation/request/token_request/MSIDBrokerOperationTokenRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN
5050
@property (nonatomic) BOOL skipValidateResultAccount;
5151
@property (nonatomic) BOOL forceRefresh;
5252
@property (nonatomic) BOOL ignoreScopeValidation;
53-
53+
@property (nonatomic) BOOL bypassRedirectURIValidation;
5454

5555
+ (BOOL)fillRequest:(MSIDBrokerOperationTokenRequest *)request
5656
withParameters:(MSIDRequestParameters *)parameters

IdentityCore/src/broker_operation/request/token_request/MSIDBrokerOperationTokenRequest.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ + (BOOL)fillRequest:(MSIDBrokerOperationTokenRequest *)request
6868
request.platformSequence = parameters.platformSequence;
6969
request.allowAnyExtraURLQueryParameters = parameters.allowAnyExtraURLQueryParameters;
7070
request.ignoreScopeValidation = parameters.ignoreScopeValidation;
71+
request.bypassRedirectURIValidation = parameters.bypassRedirectURIValidation;
7172
return YES;
7273
}
7374

IdentityCore/src/parameters/MSIDRequestParameters.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
@property (nonatomic) NSString *clientSku;
6060
@property (nonatomic) BOOL skipValidateResultAccount;
6161
@property (nonatomic) BOOL forceRefresh;
62+
// If YES — redirect URI validation is bypassed.
63+
// This flag may be set by either the MSAL app or the broker process.
64+
// - When set by the MSAL app: brokered flows are disabled, and MSAL falls back to local auth flows.
6265
@property (nonatomic) BOOL bypassRedirectURIValidation;
6366

6467
// Telemetry metadata

0 commit comments

Comments
 (0)