Skip to content

Commit 6a54b11

Browse files
authored
Merge pull request #1549 from AzureAD/swagup/fixAppInfoBroserNativeSSO
Fix AppInfo for Edge Native MSALJS Native Bridge Brower SSO Flow
2 parents 767b42b + 3830d63 commit 6a54b11

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

IdentityCore/src/broker_operation/request/browser_native_message_request/MSIDBrokerOperationBrowserNativeMessageRequest.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,17 @@ + (NSString *)operation
6161

6262
- (NSString *)callerBundleIdentifier
6363
{
64-
return self.parentProcessBundleIdentifier ?: NSLocalizedString(@"N/A", nil);
64+
return self.parentProcessBundleIdentifier ?: @"";
6565
}
6666

6767
- (NSString *)callerTeamIdentifier
6868
{
69-
return self.parentProcessTeamId ?: NSLocalizedString(@"N/A", nil);
69+
return self.parentProcessTeamId ?: @"";
7070
}
7171

7272
- (NSString *)localizedCallerDisplayName
7373
{
74-
return self.parentProcessLocalizedName ?: NSLocalizedString(@"N/A", nil);
74+
return self.parentProcessLocalizedName ?: @"";
7575
}
7676

7777
- (NSString *)localizedApplicationInfo
@@ -87,7 +87,7 @@ - (NSString *)localizedApplicationInfo
8787
return brokerOperationRequest.localizedApplicationInfo;
8888
}
8989

90-
return NSLocalizedString(@"N/A", nil);
90+
return @"";
9191
}
9292

9393
#pragma mark - MSIDJsonSerializable

IdentityCore/tests/MSIDBrokerOperationBrowserNativeMessageRequestTests.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ - (void)testInitWithJSONDictionary_whenAllValuesSet_shoudlInit
143143
XCTAssertEqualObjects(request.localizedApplicationInfo, @"mock_app_info");
144144
}
145145

146-
- (void)testInitWithJSONDictionary_whenNoParentProcessInfo_shouldReturnNA
146+
- (void)testInitWithJSONDictionary_whenNoParentProcessInfo_shouldReturnEmptyValues
147147
{
148148
__auto_type json = @{@"broker_key": @"some key",
149149
@"msg_protocol_ver": @"1",
@@ -156,10 +156,10 @@ - (void)testInitWithJSONDictionary_whenNoParentProcessInfo_shouldReturnNA
156156
XCTAssertEqualObjects(request.brokerKey, @"some key");
157157
XCTAssertEqual(request.protocolVersion, 1);
158158
XCTAssertEqualObjects(request.payloadJson, @{@"method":@"GetCookies"});
159-
XCTAssertEqualObjects(request.callerBundleIdentifier, @"N/A");
160-
XCTAssertEqualObjects(request.callerTeamIdentifier, @"N/A");
161-
XCTAssertEqualObjects(request.localizedCallerDisplayName, @"N/A");
162-
XCTAssertEqualObjects(request.localizedApplicationInfo, @"N/A");
159+
XCTAssertEqualObjects(request.callerBundleIdentifier, @"");
160+
XCTAssertEqualObjects(request.callerTeamIdentifier, @"");
161+
XCTAssertEqualObjects(request.localizedCallerDisplayName, @"");
162+
XCTAssertEqualObjects(request.localizedApplicationInfo, @"");
163163
XCTAssertNil(request.parentProcessBundleIdentifier);
164164
XCTAssertNil(request.parentProcessTeamId);
165165
XCTAssertNil(request.parentProcessLocalizedName);

0 commit comments

Comments
 (0)