Skip to content

Commit f27b883

Browse files
authored
Add platform sequence param. (#2192)
* Add platform sequence param. * Update core. * Update core. * Update changelog.
1 parent ee32a29 commit f27b883

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
TBD:
2+
* Add platform sequence param. #2192
3+
14
## [1.3.3]
25
* Update common core submodule.
36
* Automation improvements.

MSAL/src/MSALPublicClientApplication.m

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
#import "MSIDAssymetricKeyLookupAttributes.h"
112112
#import "MSIDRequestTelemetryConstants.h"
113113
#import "MSALWipeCacheForAllAccountsConfig.h"
114+
#import "NSString+MSIDTelemetryExtensions.h"
114115

115116
@interface MSALPublicClientApplication()
116117
{
@@ -863,6 +864,10 @@ - (void)acquireTokenSilentWithParameters:(MSALSilentTokenParameters *)parameters
863864
NSMutableDictionary *extraURLQueryParameters = [self.internalConfig.extraQueryParameters.extraURLQueryParameters mutableCopy];
864865
[extraURLQueryParameters addEntriesFromDictionary:parameters.extraQueryParameters];
865866
msidParams.extraURLQueryParameters = extraURLQueryParameters;
867+
868+
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
869+
version:[MSIDVersion sdkVersion]
870+
toSequence:nil];
866871

867872
msidParams.tokenExpirationBuffer = self.internalConfig.tokenExpirationBuffer;
868873
msidParams.claimsRequest = parameters.claimsRequest.msidClaimsRequest;
@@ -1201,6 +1206,10 @@ - (void)acquireTokenWithParameters:(MSALInteractiveTokenParameters *)parameters
12011206
[extraURLQueryParameters addEntriesFromDictionary:parameters.extraQueryParameters];
12021207
msidParams.extraURLQueryParameters = extraURLQueryParameters;
12031208

1209+
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
1210+
version:[MSIDVersion sdkVersion]
1211+
toSequence:nil];
1212+
12041213
msidParams.tokenExpirationBuffer = self.internalConfig.tokenExpirationBuffer;
12051214
msidParams.extendedLifetimeEnabled = self.internalConfig.extendedLifetimeEnabled;
12061215
msidParams.clientCapabilities = self.internalConfig.clientApplicationCapabilities;
@@ -1454,7 +1463,9 @@ - (void)signoutWithAccount:(nonnull MSALAccount *)account
14541463
msidParams.validateAuthority = [self shouldValidateAuthorityForRequestAuthority:requestAuthority];
14551464
msidParams.keychainAccessGroup = self.internalConfig.cacheConfig.keychainSharingGroup;
14561465
msidParams.providedAuthority = requestAuthority;
1457-
1466+
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
1467+
version:[MSIDVersion sdkVersion]
1468+
toSequence:nil];
14581469
NSError *localError;
14591470
BOOL localRemovalResult = [self removeAccountImpl:account wipeAccount:signoutParameters.wipeAccount error:&localError];
14601471

0 commit comments

Comments
 (0)