Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ForgeRock iOS SDK 4.6.0 Release #310

Merged
merged 49 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
accf41d
Fix to ignore ScriptedTextOutputCallbacks from the response.
vahancouver Jul 23, 2024
21fd99c
Added integration test for the TextOutput callback.
spetrov Jul 24, 2024
81f105a
Add unit tests
vahancouver Jul 24, 2024
3230220
Merge pull request #292 from ForgeRock/SDKS-3226_TextOutputCallbacks-…
spetrov Jul 24, 2024
63823ef
SDKS-3296 Support Marketplace PingOne Protect nodes
rodrigoareis Aug 12, 2024
f66f0b7
Added extra unit tests
rodrigoareis Aug 13, 2024
8bef95f
Merge pull request #294 from ForgeRock/SDKS-3296
spetrov Aug 14, 2024
970a871
Making the PolicyAdviceCreator Public. Creating public init and expos…
george-bafaloukas-forgerock Aug 22, 2024
041a286
Merge pull request #295 from ForgeRock/SDKS-3349_Make_PolicyAdviceCre…
spetrov Aug 26, 2024
f505322
Importing UIKit to FRUser
george-bafaloukas-forgerock Aug 27, 2024
14370e1
Improving SSL Pinning to support 4096 root certificates and condition…
george-bafaloukas-forgerock Aug 28, 2024
a643b18
Changing the print to a verbose log level
george-bafaloukas-forgerock Aug 29, 2024
85415be
Removing EXCLUDED_ARCHS from PodSpec of FRGoogleSignIn module
george-bafaloukas-forgerock Aug 29, 2024
08eb182
Updating test cases and the httpnin urls
george-bafaloukas-forgerock Aug 30, 2024
ba0164f
Merge pull request #297 from ForgeRock/SDKS-3334_SSL_Pinning_Root
spetrov Aug 30, 2024
ec2a6a1
Merge pull request #296 from ForgeRock/SDKS-3348_UIViewController_sco…
spetrov Aug 30, 2024
62e270a
Merge pull request #298 from ForgeRock/SDKS-3347_arm64_architecture_pods
spetrov Sep 3, 2024
ae82311
SDKS-3324 Support new ReCaptcha Enterprise node
rodrigoareis Aug 22, 2024
8f294c4
Moved tests to FRTestHost schema
spetrov Sep 4, 2024
26bba50
SDKS-3324 -adding facebook, captcha and google in FRtestHost
jeyanthanperiyasamy Sep 4, 2024
ed843c3
SDKS-3324 update xcode version
jeyanthanperiyasamy Sep 5, 2024
6b9f81e
Merge pull request #299 from ForgeRock/SDKS-3324
spetrov Sep 5, 2024
b3dc627
SDKS-3324 update xcode version
jeyanthanperiyasamy Sep 5, 2024
5f64e53
Merge branch 'develop' into SDKS-3324
spetrov Sep 5, 2024
a976d8b
Merge pull request #301 from ForgeRock/SDKS-3324
spetrov Sep 5, 2024
025eed6
SDKS-Fix Build
jeyanthanperiyasamy Sep 5, 2024
e140b77
Merge pull request #303 from ForgeRock/SDKS-Fix-Build
spetrov Sep 6, 2024
509ca97
Expose success url and realm in getSessionToken
vahancouver Sep 11, 2024
53547e3
Address PR comments
vahancouver Sep 12, 2024
074683a
Address PR comments
vahancouver Sep 16, 2024
fadcf07
Merge pull request #304 from ForgeRock/SDKS-3352-expose-successUrl-realm
spetrov Sep 16, 2024
2d7dcb9
Add FRCaptchaEnterprise to FRUI and to FRTestHost
vahancouver Sep 19, 2024
cad858f
Add FRTestHost as and host app to FRCaptchaEnterprise, FRFacebookSign…
vahancouver Sep 19, 2024
94fcc21
Change idp tests due to FB and google handlers availability
vahancouver Sep 19, 2024
68b7749
Merge pull request #305 from ForgeRock/SDKS-3429-fix-tests
spetrov Sep 25, 2024
5016231
SDKS-3373 - ReCaptcha e2e test cases
spetrov Sep 25, 2024
db44623
Fix SSLPinningTests - updated public key hash of the httpbun.com host
spetrov Oct 2, 2024
08ec08d
Merge pull request #306 from ForgeRock/SDKS-3373
spetrov Oct 2, 2024
05d3886
Update versions, changelog
vahancouver Oct 8, 2024
f44be9c
Allowing DeviceBinding `NONE` option on Simulators
george-bafaloukas-forgerock Oct 9, 2024
455b161
updating tests
george-bafaloukas-forgerock Oct 9, 2024
e90d877
Fix ReCaptchaEnterpriseCallbackTests
vahancouver Oct 9, 2024
f079ea9
Fixing tests
george-bafaloukas-forgerock Oct 10, 2024
c0c37e8
Update changelog
vahancouver Oct 10, 2024
1f4fb4a
Update readme file
vahancouver Oct 10, 2024
e4ec365
Merge pull request #307 from ForgeRock/SDKS-3362-4.6-release-preparation
vahancouver Oct 10, 2024
4277b5f
Update FRCaptchaEnterprise and FRUI podspecs
vahancouver Oct 11, 2024
d72d6f7
Merge pull request #309 from ForgeRock/SDKS-3362-podspec-fixs
spetrov Oct 11, 2024
0feb747
Merge pull request #308 from ForgeRock/DeviceBinding-None-Simulators
spetrov Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/bitbar-prepare-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ on:
required: true
jobs:
prepare-device-farm-artifacts:
runs-on: macos-13
runs-on: macos-14

steps:
# Clone the repo
Expand Down Expand Up @@ -85,10 +85,10 @@ jobs:
# Set target Xcode version. For more details and options see:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-11-Readme.md
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.3.app && /usr/bin/xcodebuild -version
run: sudo xcode-select -switch /Applications/Xcode_15.4.app && /usr/bin/xcodebuild -version

- name: build-for-testing and sign
run: xcodebuild -scheme FRTestHostBitBar -sdk iphoneos16.4 -workspace SampleApps/FRExample.xcworkspace -configuration Debug clean build BUILD_DIR=~/build/ DEVELOPMENT_TEAM=JV6EC9KSN3 -allowProvisioningUpdates -destination generic/platform=iOS -derivedDataPath ~/build/derivedData/ build-for-testing
run: xcodebuild -scheme FRTestHostBitBar -sdk iphoneos17.5 -workspace SampleApps/FRExample.xcworkspace -configuration Debug clean build BUILD_DIR=~/build/ DEVELOPMENT_TEAM=JV6EC9KSN3 -allowProvisioningUpdates -destination generic/platform=iOS -derivedDataPath ~/build/derivedData/ build-for-testing

# Prepare BitBar artifacts:
- name: Prepare BitBar artifacts
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true
jobs:
build-and-test:
runs-on: macos-13
runs-on: macos-14
timeout-minutes: 20

steps:
Expand All @@ -32,11 +32,11 @@ jobs:
# Set target Xcode version. For more details and options see:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.3.app && /usr/bin/xcodebuild -version
run: sudo xcode-select -switch /Applications/Xcode_15.4.app && /usr/bin/xcodebuild -version

# Run all tests
- name: Run tests
run: xcodebuild test -scheme FRTestHost -workspace SampleApps/FRExample.xcworkspace -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 14,OS=16.4' -derivedDataPath DerivedData -enableCodeCoverage YES -resultBundlePath TestResults | xcpretty && exit ${PIPESTATUS[0]}
run: xcodebuild test -scheme FRTestHost -workspace SampleApps/FRExample.xcworkspace -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 14,OS=17.5' -derivedDataPath DerivedData -enableCodeCoverage YES -resultBundlePath TestResults | xcpretty && exit ${PIPESTATUS[0]}

# Publish test results
- name: Publish test results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mend-cli-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
mend-cli-scan:
runs-on: macos-13
runs-on: macos-14

steps:
# Clone the repo
Expand All @@ -28,7 +28,7 @@ jobs:
# Set target Xcode version. For more details and options see:
# https://github.com/actions/virtual-environments/blob/main/images/macos/macos-12-Readme.md
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_14.3.app && /usr/bin/xcodebuild -version
run: sudo xcode-select -switch /Applications/Xcode_15.4.app && /usr/bin/xcodebuild -version

# Setup Mend CLI
- name: Download and cache the Mend CLI executable
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [4.6.0]
#### Added
- Support PingOne Protect Marketplace Nodes [SDKS-3296]
- Support new ReCaptcha Enterprise node [SDKS-3324]
- Expose realm, Success and Failure URL in SessionToken [SDKS-3352]
#### Fixed
- Missing UIKit import issue for SPM [SDKS-3348]
- SSL pinning not working with root certificates [SDKS-3334]
- Build failed because FRCore.swiftmodule is not built for arm64 [SDKS-3347]
- Skip Type 4 TextOutputCallback [SDKS-3226]
- Make PolicyAdviceCreator public [SDKS-3349]

## [4.5.0]
#### Added
- Added SDK support for deleting registered WebAuthn devices from the server. [SDKS-1753]
Expand Down
4 changes: 2 additions & 2 deletions FRAuth.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'FRAuth'
s.version = '4.5.0'
s.version = '4.6.0'
s.summary = 'ForgeRock Auth SDK for iOS'
s.description = <<-DESC
FRAuth is a SDK that allows you easily and quickly develop an application with ForgeRock Platform or ForgeRock Identity Cloud. FRAuth SDK provides interfaces and functionalities of user authentication, registration, and identity and access management against ForgeRock solutions.
Expand All @@ -32,5 +32,5 @@ Pod::Spec.new do |s|
s.resource_bundles = {
'FRAuth' => [base_dir + '/*.xcprivacy']
}
s.ios.dependency 'FRCore', '~> 4.5.0'
s.ios.dependency 'FRCore', '~> 4.6.0'
end
24 changes: 22 additions & 2 deletions FRAuth/FRAuth.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
objects = {

/* Begin PBXBuildFile section */
1B264AA72C642507002E3BD2 /* ProtectCallback.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B264AA62C642507002E3BD2 /* ProtectCallback.swift */; };
1B264AAA2C642F59002E3BD2 /* DerivableCallback.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B264AA92C642F59002E3BD2 /* DerivableCallback.swift */; };
1B264AAC2C66D81B002E3BD2 /* NodeAware.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B264AAB2C66D81B002E3BD2 /* NodeAware.swift */; };
1B5DD69B2BF599F400EE0C8B /* RemoteWebAuthnRepository.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B5DD69A2BF599F400EE0C8B /* RemoteWebAuthnRepository.swift */; };
1B6037E62B505924009090DF /* TextInputCallback.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B6037E52B505924009090DF /* TextInputCallback.swift */; };
1B85DA132B85208C0023E953 /* TextInputCallbackTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1B85DA122B85208C0023E953 /* TextInputCallbackTests.swift */; };
Expand All @@ -23,8 +26,10 @@
3A67B8832AD83946003331C5 /* FRAppIntegrityKeys.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A67B8822AD83946003331C5 /* FRAppIntegrityKeys.swift */; };
3A6D26672A1345400099D877 /* PolicyAdviceCreator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A6D26662A1345400099D877 /* PolicyAdviceCreator.swift */; };
3AB062FA2AE6224D00C4B47C /* FRAppIntegrityKeysTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AB062F92AE6224D00C4B47C /* FRAppIntegrityKeysTests.swift */; };
9527F63F2CA32942008475B7 /* AA_12_ReCaptchaEnterpriseCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9527F63E2CA32942008475B7 /* AA_12_ReCaptchaEnterpriseCallbackTest.swift */; };
9536C56C2B865DD600B2DFDD /* AA_08_TextInputCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9536C56B2B865DD600B2DFDD /* AA_08_TextInputCallbackTest.swift */; };
959D7D98290B4B9200A1F22F /* AA-05-DeviceBindingCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 959D7D97290B4B9200A1F22F /* AA-05-DeviceBindingCallbackTest.swift */; };
95A812F02C516FC4001CDFCB /* AA_11_TextOutputCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95A812EF2C516FC4001CDFCB /* AA_11_TextOutputCallbackTest.swift */; };
95E180B42992A6F20087457D /* AA-06-DeviceSigningVerifierCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95E180B32992A6F20087457D /* AA-06-DeviceSigningVerifierCallbackTest.swift */; };
95EB7E4D2B8D010B00B59CD6 /* AA_09_PingOneProtectInitializeCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95EB7E4C2B8D010B00B59CD6 /* AA_09_PingOneProtectInitializeCallbackTest.swift */; };
95EB7E532B8D5F6100B59CD6 /* AA_10_PingOneProtectEvaluateCallbackTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95EB7E522B8D5F6100B59CD6 /* AA_10_PingOneProtectEvaluateCallbackTest.swift */; };
Expand Down Expand Up @@ -340,6 +345,9 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
1B264AA62C642507002E3BD2 /* ProtectCallback.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ProtectCallback.swift; sourceTree = "<group>"; };
1B264AA92C642F59002E3BD2 /* DerivableCallback.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DerivableCallback.swift; sourceTree = "<group>"; };
1B264AAB2C66D81B002E3BD2 /* NodeAware.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NodeAware.swift; sourceTree = "<group>"; };
1B5DD69A2BF599F400EE0C8B /* RemoteWebAuthnRepository.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteWebAuthnRepository.swift; sourceTree = "<group>"; };
1B6037E52B505924009090DF /* TextInputCallback.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TextInputCallback.swift; sourceTree = "<group>"; };
1B85DA122B85208C0023E953 /* TextInputCallbackTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TextInputCallbackTests.swift; sourceTree = "<group>"; };
Expand All @@ -356,8 +364,10 @@
3A67B8822AD83946003331C5 /* FRAppIntegrityKeys.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FRAppIntegrityKeys.swift; sourceTree = "<group>"; };
3A6D26662A1345400099D877 /* PolicyAdviceCreator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PolicyAdviceCreator.swift; sourceTree = "<group>"; };
3AB062F92AE6224D00C4B47C /* FRAppIntegrityKeysTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FRAppIntegrityKeysTests.swift; sourceTree = "<group>"; };
9527F63E2CA32942008475B7 /* AA_12_ReCaptchaEnterpriseCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AA_12_ReCaptchaEnterpriseCallbackTest.swift; sourceTree = "<group>"; };
9536C56B2B865DD600B2DFDD /* AA_08_TextInputCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AA_08_TextInputCallbackTest.swift; sourceTree = "<group>"; };
959D7D97290B4B9200A1F22F /* AA-05-DeviceBindingCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AA-05-DeviceBindingCallbackTest.swift"; sourceTree = "<group>"; };
95A812EF2C516FC4001CDFCB /* AA_11_TextOutputCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AA_11_TextOutputCallbackTest.swift; sourceTree = "<group>"; };
95E180B32992A6F20087457D /* AA-06-DeviceSigningVerifierCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "AA-06-DeviceSigningVerifierCallbackTest.swift"; sourceTree = "<group>"; };
95EB7E4C2B8D010B00B59CD6 /* AA_09_PingOneProtectInitializeCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AA_09_PingOneProtectInitializeCallbackTest.swift; sourceTree = "<group>"; };
95EB7E522B8D5F6100B59CD6 /* AA_10_PingOneProtectEvaluateCallbackTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AA_10_PingOneProtectEvaluateCallbackTest.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1008,6 +1018,7 @@
children = (
D5723C3923F4C65800557AA8 /* AuthService.swift */,
D5723C3A23F4C65800557AA8 /* Node.swift */,
1B264AAB2C66D81B002E3BD2 /* NodeAware.swift */,
);
path = Authentication;
sourceTree = "<group>";
Expand Down Expand Up @@ -1093,6 +1104,8 @@
D5B2061325FFE0E500DABB9B /* SelectIdPCallback.swift */,
D5B2061725FFE0F300DABB9B /* IdPCallback.swift */,
3A3E785A2AAF6BE8007962B7 /* FRAppIntegrityCallback.swift */,
1B264AA62C642507002E3BD2 /* ProtectCallback.swift */,
1B264AA92C642F59002E3BD2 /* DerivableCallback.swift */,
);
path = Callbacks;
sourceTree = "<group>";
Expand Down Expand Up @@ -1211,6 +1224,8 @@
9536C56B2B865DD600B2DFDD /* AA_08_TextInputCallbackTest.swift */,
95EB7E4C2B8D010B00B59CD6 /* AA_09_PingOneProtectInitializeCallbackTest.swift */,
95EB7E522B8D5F6100B59CD6 /* AA_10_PingOneProtectEvaluateCallbackTest.swift */,
95A812EF2C516FC4001CDFCB /* AA_11_TextOutputCallbackTest.swift */,
9527F63E2CA32942008475B7 /* AA_12_ReCaptchaEnterpriseCallbackTest.swift */,
);
path = "Callback-Live";
sourceTree = "<group>";
Expand Down Expand Up @@ -1824,6 +1839,7 @@
D586CF7823358EE0007A2194 /* ConfigError.swift in Sources */,
D586CF7723358EE0007A2194 /* AuthError.swift in Sources */,
D53A800E262789A80093B1CA /* WebAuthn.swift in Sources */,
1B264AA72C642507002E3BD2 /* ProtectCallback.swift in Sources */,
D586CFB923358EE0007A2194 /* DeviceCollector.swift in Sources */,
D586CFB423358EE0007A2194 /* FRDeviceCollector.swift in Sources */,
D53A804C262789BD0093B1CA /* ClientGetOperation.swift in Sources */,
Expand All @@ -1839,6 +1855,7 @@
D586CFB223358EE0007A2194 /* CallbackConstants.swift in Sources */,
D586CF9023358EE0007A2194 /* PKCE.swift in Sources */,
D586CFBB23358EE0007A2194 /* NetworkCollector.swift in Sources */,
1B264AAC2C66D81B002E3BD2 /* NodeAware.swift in Sources */,
3A3E78632AAF764F007962B7 /* FRAppAttestDomainModal.swift in Sources */,
D53A803F262789BD0093B1CA /* WAKLogger.swift in Sources */,
D53A8046262789BD0093B1CA /* CredentialStore.swift in Sources */,
Expand All @@ -1849,6 +1866,7 @@
D5CD493225265FF8006DD932 /* BrowserError.swift in Sources */,
D5C6DB682509747D00E1A857 /* Browser.swift in Sources */,
D53A8045262789BD0093B1CA /* KeySupport.swift in Sources */,
1B264AAA2C642F59002E3BD2 /* DerivableCallback.swift in Sources */,
D586CFA323358EE0007A2194 /* KbaCreateCallback.swift in Sources */,
D586CF9523358EE0007A2194 /* MultipleValuesCallback.swift in Sources */,
D586CFB123358EE0007A2194 /* Typealias.swift in Sources */,
Expand Down Expand Up @@ -1876,6 +1894,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
95A812F02C516FC4001CDFCB /* AA_11_TextOutputCallbackTest.swift in Sources */,
95E180B42992A6F20087457D /* AA-06-DeviceSigningVerifierCallbackTest.swift in Sources */,
D53A807026278A5C0093B1CA /* WebAuthnAuthenticationCallbackTests.swift in Sources */,
D5791B5025F87DE7004B487A /* CustomCallback.swift in Sources */,
Expand Down Expand Up @@ -1959,6 +1978,7 @@
D5791BD125F87DE8004B487A /* FRDeviceCollectorTests.swift in Sources */,
D5791BD225F87DE8004B487A /* AuthErrorTests.swift in Sources */,
D5791BD325F87DE8004B487A /* ConfigErrorTests.swift in Sources */,
9527F63F2CA32942008475B7 /* AA_12_ReCaptchaEnterpriseCallbackTest.swift in Sources */,
D5791BD425F87DE8004B487A /* TokenErrorTests.swift in Sources */,
D5791BD525F87DE8004B487A /* AuthApiErrorTests.swift in Sources */,
D5791BD625F87DE8004B487A /* BrowserErrorTests.swift in Sources */,
Expand Down Expand Up @@ -2150,7 +2170,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 4.5.0;
MARKETING_VERSION = 4.6.0;
MODULEMAP_FILE = "";
OTHER_CFLAGS = "-DXCODE_FRAMEWORK=1";
PRODUCT_BUNDLE_IDENTIFIER = com.forgerock.ios.FRAuth;
Expand Down Expand Up @@ -2187,7 +2207,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 4.5.0;
MARKETING_VERSION = 4.6.0;
MODULEMAP_FILE = "";
OTHER_CFLAGS = "-DXCODE_FRAMEWORK=1";
PRODUCT_BUNDLE_IDENTIFIER = com.forgerock.ios.FRAuth;
Expand Down
6 changes: 4 additions & 2 deletions FRAuth/FRAuth/Authentication/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// AuthService.swift
// FRAuth
//
// Copyright (c) 2019-2021 ForgeRock. All rights reserved.
// Copyright (c) 2019-2024 ForgeRock. All rights reserved.
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
Expand Down Expand Up @@ -229,7 +229,9 @@ public class AuthService: NSObject {
}
}
else if let tokenId = response[OpenAM.tokenId] as? String {
let token = Token(tokenId)
let successUrl = response[OpenAM.successUrl] as? String ?? ""
let realm = response[OpenAM.realm] as? String ?? ""
let token = Token(tokenId, successUrl: successUrl, realm: realm)
if let keychainManager = self.keychainManager {
let currentSessionToken = keychainManager.getSSOToken()
if let _ = try? keychainManager.getAccessToken(), token.value != currentSessionToken?.value {
Expand Down
Loading
Loading