Skip to content

Commit

Permalink
Merge pull request #2213 from AzureAD/jarias/merge_release_1.4.0_into…
Browse files Browse the repository at this point in the history
…_dev

Merge release 1.4.0 into dev
  • Loading branch information
juan-arias authored Jun 18, 2024
2 parents a21c23e + 80e2903 commit 006882e
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 20 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
TBD:
## [1.4.0]:
* Add platform sequence param. #2192
* Native auth can now store multiple access tokens related to different resources.

## [1.3.3]
* Update common core submodule.
Expand Down
2 changes: 1 addition & 1 deletion MSAL.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MSAL"
s.version = "1.3.3"
s.version = "1.4.0"
s.summary = "Microsoft Authentication Library (MSAL) for iOS"
s.description = <<-DESC
The MSAL library for iOS gives your app the ability to begin using the Microsoft Cloud by supporting Microsoft Azure Active Directory and Microsoft Accounts in a converged experience using industry standard OAuth2 and OpenID Connect. The library also supports Microsoft Azure B2C for those using our hosted identity management service.
Expand Down
2 changes: 1 addition & 1 deletion MSAL/resources/ios/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.3.3</string>
<string>1.4.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
Expand Down
2 changes: 1 addition & 1 deletion MSAL/resources/mac/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.3.3</string>
<string>1.4.0</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSHumanReadableCopyright</key>
Expand Down
19 changes: 10 additions & 9 deletions MSAL/src/MSALPublicClientApplication.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
#import "MSIDRequestTelemetryConstants.h"
#import "MSALWipeCacheForAllAccountsConfig.h"
#import "NSString+MSIDTelemetryExtensions.h"
#import "MSIDVersion.h"

@interface MSALPublicClientApplication()
{
Expand Down Expand Up @@ -865,9 +866,9 @@ - (void)acquireTokenSilentWithParameters:(MSALSilentTokenParameters *)parameters
[extraURLQueryParameters addEntriesFromDictionary:parameters.extraQueryParameters];
msidParams.extraURLQueryParameters = extraURLQueryParameters;

msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
version:[MSIDVersion sdkVersion]
toSequence:nil];
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithSrcName:[MSIDVersion platformName]
srcVersion:[MSIDVersion sdkVersion]
sequence:nil];

msidParams.tokenExpirationBuffer = self.internalConfig.tokenExpirationBuffer;
msidParams.claimsRequest = parameters.claimsRequest.msidClaimsRequest;
Expand Down Expand Up @@ -1206,9 +1207,9 @@ - (void)acquireTokenWithParameters:(MSALInteractiveTokenParameters *)parameters
[extraURLQueryParameters addEntriesFromDictionary:parameters.extraQueryParameters];
msidParams.extraURLQueryParameters = extraURLQueryParameters;

msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
version:[MSIDVersion sdkVersion]
toSequence:nil];
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithSrcName:[MSIDVersion platformName]
srcVersion:[MSIDVersion sdkVersion]
sequence:nil];

msidParams.tokenExpirationBuffer = self.internalConfig.tokenExpirationBuffer;
msidParams.extendedLifetimeEnabled = self.internalConfig.extendedLifetimeEnabled;
Expand Down Expand Up @@ -1463,9 +1464,9 @@ - (void)signoutWithAccount:(nonnull MSALAccount *)account
msidParams.validateAuthority = [self shouldValidateAuthorityForRequestAuthority:requestAuthority];
msidParams.keychainAccessGroup = self.internalConfig.cacheConfig.keychainSharingGroup;
msidParams.providedAuthority = requestAuthority;
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithName:[MSIDVersion platformName]
version:[MSIDVersion sdkVersion]
toSequence:nil];
msidParams.platformSequence = [NSString msidUpdatePlatformSequenceParamWithSrcName:[MSIDVersion platformName]
srcVersion:[MSIDVersion sdkVersion]
sequence:nil];
NSError *localError;
BOOL localRemovalResult = [self removeAccountImpl:account wipeAccount:signoutParameters.wipeAccount error:&localError];

Expand Down
4 changes: 2 additions & 2 deletions MSAL/src/MSAL_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
//------------------------------------------------------------------------------

#define MSAL_VER_HIGH 1
#define MSAL_VER_LOW 3
#define MSAL_VER_PATCH 3
#define MSAL_VER_LOW 4
#define MSAL_VER_PATCH 0

#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
Expand Down
16 changes: 14 additions & 2 deletions MSAL/test/automation/tests/MSALBaseUITest.m
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,21 @@ - (void)closeAuthUIUsingWebViewType:(MSIDWebviewType)webViewType
// We take the second one and tap it
XCUIElement *secondButton = [elementQuery elementBoundByIndex:1];
[secondButton msidTap];
} else
}
else
{
[self.testApp.buttons[buttonTitle] msidTap];
if (webViewType == MSIDWebviewTypeSafariViewController)
{
// We take the first one and force tap it, for some reason tap doesn't work
XCUIElement *firstButton = [elementQuery elementBoundByIndex:0];

__auto_type coordinate = [firstButton coordinateWithNormalizedOffset:CGVectorMake(0, 0)];
[coordinate tap];
}
else
{
[self.testApp.buttons[buttonTitle] msidTap];
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ - (void)setUp

MSIDTestAutomationAccountConfigurationRequest *accountConfigurationRequest = [MSIDTestAutomationAccountConfigurationRequest new];
accountConfigurationRequest.federationProviderType = MSIDTestAccountFederationProviderTypeCIAM;
accountConfigurationRequest.additionalQueryParameters = @{@"signInAudience": @"azureadmyorg",@"PublicClient": @"No"};

[self loadTestAccount:accountConfigurationRequest];

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ let package = Package(
targets: ["MSAL"]),
],
targets: [
.binaryTarget(name: "MSAL", url: "https://github.com/AzureAD/microsoft-authentication-library-for-objc/releases/download/1.3.3/MSAL.zip", checksum: "4c4a52ed5bbc20875efed36707216ce0ca6b2b8846f2b88c16fc44f634093f2d")
.binaryTarget(name: "MSAL", url: "https://github.com/AzureAD/microsoft-authentication-library-for-objc/releases/download/1.4.0/MSAL.zip", checksum: "0bd52aa02ef94ec39ce7912fb66c5388b48cfd89c43ee3040b2d242505014fc8")
]
)

0 comments on commit 006882e

Please sign in to comment.