From 856768f9e333fe5c75b787ca024bfe620dde5b67 Mon Sep 17 00:00:00 2001 From: Michiel Vrins Date: Mon, 27 Mar 2023 15:07:58 +0200 Subject: [PATCH] Update the iOS TokenServer configuration --- .../Configuration/OneginiConfigModel.h | 0 .../ios/Configuration/OneginiConfigModel.m | 29 ++++++++++++++ example/ios/Runner.xcodeproj/project.pbxproj | 37 +++++++++++++----- .../Configuration/CloudFlareIncECCCA3.cer | Bin 977 -> 0 bytes 4 files changed, 56 insertions(+), 10 deletions(-) rename example/ios/{Runner => }/Configuration/OneginiConfigModel.h (100%) mode change 100644 => 100755 create mode 100755 example/ios/Configuration/OneginiConfigModel.m delete mode 100644 example/ios/Runner/Configuration/CloudFlareIncECCCA3.cer diff --git a/example/ios/Runner/Configuration/OneginiConfigModel.h b/example/ios/Configuration/OneginiConfigModel.h old mode 100644 new mode 100755 similarity index 100% rename from example/ios/Runner/Configuration/OneginiConfigModel.h rename to example/ios/Configuration/OneginiConfigModel.h diff --git a/example/ios/Configuration/OneginiConfigModel.m b/example/ios/Configuration/OneginiConfigModel.m new file mode 100755 index 00000000..486e4e1c --- /dev/null +++ b/example/ios/Configuration/OneginiConfigModel.m @@ -0,0 +1,29 @@ +#import "OneginiConfigModel.h" + +@implementation OneginiConfigModel + +// Config model generated by SDK Configurator version: v5.1.0 + ++ (NSArray *)certificates +{ + return @[@"MIIDzTCCArWgAwIBAgIQCjeHZF5ftIwiTv0b7RQMPDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJJRTESMBAGA1UEChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3liZXJUcnVzdCBSb290MB4XDTIwMDEyNzEyNDgwOFoXDTI0MTIzMTIzNTk1OVowSjELMAkGA1UEBhMCVVMxGTAXBgNVBAoTEENsb3VkZmxhcmUsIEluYy4xIDAeBgNVBAMTF0Nsb3VkZmxhcmUgSW5jIEVDQyBDQS0zMFkwEwYHKo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XN0LmNvbS9VU0VSVHJ1c3RSU0FDZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDB2BggrBgEFBQcBAQRqMGgwPwYIKwYBBQUHMAKGM2h0dHA6Ly9jcnQudXNlcnRydXN0LmNvbS9VU0VSVHJ1c3RSU0FBZGRUcnVzdENBLmNydDAlBggrBgEFBQcwAYYZaHR0cDovL29jc3AudXNlcnRydXN0LmNvbTANBgkqhkiG9w0BAQwFAAOCAgEAMr9hvQ5Iw0/HukdN+Jx4GQHcEx2Ab/zDcLRSmjEzmldS+zGea6TvVKqJjUAXaPgREHzSyrHxVYbH7rM2kYb2OVG/Rr8PoLq0935JxCo2F57kaDl6r5ROVm+yezu/Coa9zcV3HAO4OLGiH19+24rcRki2aArPsrW04jTkZ6k4Zgle0rj8nSg6F0AnwnJOKf0hPHzPE/uWLMUxRP0T7dWbqWlod3zu4f+k+TY4CFM5ooQ0nBnzvg6s1SQ36yOoeNDT5++SR2RiOSLvxvcRviKFxmZEJCaOEDKNyJOuB56DPi/Z+fVGjmO+wea03KbNIaiGCpXZLoUmGv38sbZXQm2V0TP2ORQGgkE49Y9Y3IBbpNV9lXj9p5v//cWoaasm56ekBYdbqbe4oyALl6lFhd2zi+WJN44pDfwGF/Y4QA5C5BIG+3vzxhFoYt/jmPQT2BVPi7Fp2RBgvGQq6jG35LWjOhSbJuMLe/0CjraZwTiXWTb2qHSihrZe68Zk6s+go/lunrotEbaGmAhYLcmsJWTyXnW0OMGuf1pGg+pRyrbxmRE1a6Vqe8YAsOf4vmSyrcjC8azjUeqkk+B5yOGBQMkKW+ESPMFgKuOXwIlCypTPRpgSabuY0MLTDXJLR27lk8QyKGOHQ+SwMj4K00u/I5sUKUErmgQfky3xxzlIPK1aEn8="]; //Base64Certificates +} + ++ (NSDictionary *)configuration +{ + return @{ + @"ONGAppIdentifier" : @"FlutterExampleApp", + @"ONGAppPlatform" : @"ios", + @"ONGAppVersion" : @"1.0.3", + @"ONGAppBaseURL" : @"https://token-mobile.test.onegini.com", + @"ONGResourceBaseURL" : @"https://token-mobile.test.onegini.com/resources/", + @"ONGRedirectURL" : @"oneginiexample://loginsuccess", + }; +} + ++ (NSString *)serverPublicKey +{ + return @"4B8E698FEAA9F0A1E99644E77E1AB9EF5F63FBBFBA5EE52D881AADB2C0373336"; +} + +@end \ No newline at end of file diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 7310f0e2..8552c716 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -9,18 +9,18 @@ /* Begin PBXBuildFile section */ 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; 21494DE316E6F87D4D59DE55 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4112D1722747CEA547F2E0C4 /* Pods_Runner.framework */; }; + 28A93267F79A7889DCBC875F /* OneginiConfigModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 4D0D87A64393A8E085BE3504 /* OneginiConfigModel.m */; }; 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; 5DAAA2DD8C61D6DFC7F05D95 /* Pods_OneginiTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 33AB902096C9984BE9456033 /* Pods_OneginiTests.framework */; }; 5F07F1B8260DFCFC0073BA5E /* OneginiTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F07F1B7260DFCFC0073BA5E /* OneginiTests.swift */; }; 5F1ADDDF26146EE30055B23D /* OneginiUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F1ADDDE26146EE30055B23D /* OneginiUITests.swift */; }; 5F1ADDEE2614701E0055B23D /* RegistrationHandler_SignUpUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5F1ADDED2614701E0055B23D /* RegistrationHandler_SignUpUITests.swift */; }; 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 7B51F5CB5B39172B445BFA9B /* OneginiConfigModel.h in Headers */ = {isa = PBXBuildFile; fileRef = D68EE1BDDE796AE8E888D809 /* OneginiConfigModel.h */; }; 94C43332D07B64C1B7A60E45 /* Pods_Runner_OneginiUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F24C3F0D8D766862386EA2A6 /* Pods_Runner_OneginiUITests.framework */; }; 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; - F0D3E8D12576F7FD009D2C24 /* CloudFlareIncECCCA3.cer in Resources */ = {isa = PBXBuildFile; fileRef = F0D3E8CE2576F7FD009D2C24 /* CloudFlareIncECCCA3.cer */; }; - F0D3E8D22576F7FD009D2C24 /* OneginiConfigModel.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D3E8CF2576F7FD009D2C24 /* OneginiConfigModel.m */; }; F0D3E8D32576F7FD009D2C24 /* SecurityController.m in Sources */ = {isa = PBXBuildFile; fileRef = F0D3E8D02576F7FD009D2C24 /* SecurityController.m */; }; /* End PBXBuildFile section */ @@ -62,6 +62,7 @@ 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; 4112D1722747CEA547F2E0C4 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46DA2568900E1EC5AD1BFC14 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + 4D0D87A64393A8E085BE3504 /* OneginiConfigModel.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = OneginiConfigModel.m; path = Configuration/OneginiConfigModel.m; sourceTree = ""; }; 5F07F133260DEC5B0073BA5E /* onegini.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = onegini.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 5F07F13D260DEE2E0073BA5E /* OneginiCrypto.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = OneginiCrypto.xcframework; path = ../../ios/OneginiCrypto.xcframework; sourceTree = ""; }; 5F07F13F260DEE340073BA5E /* OneginiSDKiOS.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = OneginiSDKiOS.xcframework; path = ../../ios/OneginiSDKiOS.xcframework; sourceTree = ""; }; @@ -93,11 +94,9 @@ 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; C2D65814B20E7A11AA736665 /* Pods-OneginiTests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneginiTests.profile.xcconfig"; path = "Target Support Files/Pods-OneginiTests/Pods-OneginiTests.profile.xcconfig"; sourceTree = ""; }; C80B56987111D82D8A6197FA /* Pods-Runner-OneginiUITests.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner-OneginiUITests.profile.xcconfig"; path = "Target Support Files/Pods-Runner-OneginiUITests/Pods-Runner-OneginiUITests.profile.xcconfig"; sourceTree = ""; }; + D68EE1BDDE796AE8E888D809 /* OneginiConfigModel.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = OneginiConfigModel.h; path = Configuration/OneginiConfigModel.h; sourceTree = ""; }; EB280849B0D91DEAE8BBF20D /* Pods-OneginiTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-OneginiTests.debug.xcconfig"; path = "Target Support Files/Pods-OneginiTests/Pods-OneginiTests.debug.xcconfig"; sourceTree = ""; }; F0D3E8CC2576F7FD009D2C24 /* SecurityController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecurityController.h; sourceTree = ""; }; - F0D3E8CD2576F7FD009D2C24 /* OneginiConfigModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OneginiConfigModel.h; sourceTree = ""; }; - F0D3E8CE2576F7FD009D2C24 /* CloudFlareIncECCCA3.cer */ = {isa = PBXFileReference; lastKnownFileType = file; path = CloudFlareIncECCCA3.cer; sourceTree = ""; }; - F0D3E8CF2576F7FD009D2C24 /* OneginiConfigModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OneginiConfigModel.m; sourceTree = ""; }; F0D3E8D02576F7FD009D2C24 /* SecurityController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SecurityController.m; sourceTree = ""; }; F24C3F0D8D766862386EA2A6 /* Pods_Runner_OneginiUITests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner_OneginiUITests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -181,6 +180,15 @@ path = Pods; sourceTree = ""; }; + 749122FEC13FCA5CCF36EF16 /* Configuration */ = { + isa = PBXGroup; + children = ( + 4D0D87A64393A8E085BE3504 /* OneginiConfigModel.m */, + D68EE1BDDE796AE8E888D809 /* OneginiConfigModel.h */, + ); + name = Configuration; + sourceTree = ""; + }; 9740EEB11CF90186004384FC /* Flutter */ = { isa = PBXGroup; children = ( @@ -202,6 +210,7 @@ 97C146EF1CF9000F007C117D /* Products */, 5F837D4545C2413D32620243 /* Pods */, A3B0D248D7723B5FC7E80294 /* Frameworks */, + 749122FEC13FCA5CCF36EF16 /* Configuration */, ); sourceTree = ""; }; @@ -252,9 +261,6 @@ F0D3E8CB2576F7DE009D2C24 /* Configuration */ = { isa = PBXGroup; children = ( - F0D3E8CE2576F7FD009D2C24 /* CloudFlareIncECCCA3.cer */, - F0D3E8CD2576F7FD009D2C24 /* OneginiConfigModel.h */, - F0D3E8CF2576F7FD009D2C24 /* OneginiConfigModel.m */, F0D3E8CC2576F7FD009D2C24 /* SecurityController.h */, F0D3E8D02576F7FD009D2C24 /* SecurityController.m */, ); @@ -263,6 +269,17 @@ }; /* End PBXGroup section */ +/* Begin PBXHeadersBuildPhase section */ + 0A48863FD05407DF316B5CCC /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 7B51F5CB5B39172B445BFA9B /* OneginiConfigModel.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + /* Begin PBXNativeTarget section */ 5F07F1B4260DFCFC0073BA5E /* OneginiTests */ = { isa = PBXNativeTarget; @@ -315,6 +332,7 @@ 9705A1C41CF9048500538489 /* Embed Frameworks */, 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 5AD0ACD69BCF01EDFCCC5CD0 /* [CP] Embed Pods Frameworks */, + 0A48863FD05407DF316B5CCC /* Headers */, ); buildRules = ( ); @@ -390,7 +408,6 @@ files = ( 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, - F0D3E8D12576F7FD009D2C24 /* CloudFlareIncECCCA3.cer in Resources */, 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, ); @@ -554,9 +571,9 @@ buildActionMask = 2147483647; files = ( 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, - F0D3E8D22576F7FD009D2C24 /* OneginiConfigModel.m in Sources */, 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, F0D3E8D32576F7FD009D2C24 /* SecurityController.m in Sources */, + 28A93267F79A7889DCBC875F /* OneginiConfigModel.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/example/ios/Runner/Configuration/CloudFlareIncECCCA3.cer b/example/ios/Runner/Configuration/CloudFlareIncECCCA3.cer deleted file mode 100644 index 41c742136ce864a9d7a90253af5b9f1642672d5f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 977 zcmXqLVm@oo#I$t*GZP~dlK_`_drDmVmL4U)ztV3-cx()K**LY@JlekVGBR?rG8jY| zavN~6F^96S2{U=R8VVT*fH+*joKA^3C7HSTMX83u27(|lZecFx%B0kykfPG!5$TL_^TCF>a~7|20v6GupaWE5PTofVuNb&U-o4TRa)fgU?& z%f!gW0cJ2WvNJm|uJH~+wF~f<3+6ixw*`u`X)lPy3=-aSj=vX@87@M_kE(< zk(0$&RQw;jlR1~OIj~Sa>zxlPXZhu#q$RVjFK%MYFlb^-F^~m1L6(n2j74PWIrCSq zHCN$=R=`s=2OK>IX#19_0NGK++PScAyZxse78E zhJl)a3XE^S*d~!tQc_^0ub-b>T%ebdnVy-PT2!K!oS$o81u{vV#n`~mK!1Vm0_`?U zsM6%39Agxv`u@3jnMJ_3GcqtT)dNZ! z`