Skip to content

Commit ce75cfd

Browse files
committed
rename property.
1 parent 64822bf commit ce75cfd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

IdentityCore/src/broker_operation/response/browser_native_message_response/MSIDBrowserNativeMessageGetTokenResponse.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
3636
- (instancetype _Nullable)initWithTokenResponse:(nonnull MSIDBrokerOperationTokenResponse *)tokenResponse;
3737

3838
@property (nonatomic, nullable) NSString *state;
39-
@property (nonatomic, nullable) NSString *accountUpn;
39+
@property (nonatomic, nullable) NSString *requestAccountUpn;
4040
@property (nonatomic, nullable) MSIDBrokerOperationBrowserNativeMessageMATSReport *matsReport;
4141

4242

IdentityCore/src/broker_operation/response/browser_native_message_response/MSIDBrowserNativeMessageGetTokenResponse.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ - (NSDictionary *)jsonDictionary
7272
}
7373

7474
__auto_type accountJson = [NSMutableDictionary new];
75-
accountJson[@"userName"] = tokenResponse.accountUpn ?: self.accountUpn;
75+
accountJson[@"userName"] = tokenResponse.accountUpn ?: self.requestAccountUpn;
7676
accountJson[@"id"] = tokenResponse.accountIdentifier;
7777

7878
response[@"account"] = accountJson;

IdentityCore/tests/MSIDBrowserNativeMessageGetTokenResponseTests.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ - (void)testJsonDictionary_whenNoUpnInReponse_shouldUseProvidedUpn
122122

123123
__auto_type response = [[MSIDBrowserNativeMessageGetTokenResponse alloc] initWithTokenResponse:operationTokenResponse];
124124
response.state = @"1234";
125-
response.accountUpn = @"a@b.c";
125+
response.requestAccountUpn = @"a@b.c";
126126

127127
__auto_type expectedJson = @{
128128
@"account": @{

0 commit comments

Comments
 (0)