Skip to content

Commit 77b8b96

Browse files
committed
Add more cases
1 parent 757ffd1 commit 77b8b96

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

IdentityCore/tests/automation/shared/MSIDAutomationTestRequest.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ typedef NS_ENUM(NSUInteger, MSIDAutomationWPJRegistrationAPIMode)
3333
MSIDAutomationWPJRegistrationAPIModeCompanyPortal = 2 //Company Portal
3434
};
3535

36+
typedef NS_ENUM(NSInteger, MSIDAutomationWPJSSOExtensionSecureStorage)
37+
{
38+
MSIDAutomationWPJSSOExtensionNoValueFound = 0,
39+
MSIDAutomationWPJSSOExtensionValueNo = 1,
40+
MSIDAutomationWPJSSOExtensionValueYes = 2
41+
};
42+
3643
@interface MSIDAutomationTestRequest : NSObject <MSIDJsonSerializable>
3744

3845
@property (nonatomic, strong) NSString *clientId;
@@ -86,6 +93,7 @@ typedef NS_ENUM(NSUInteger, MSIDAutomationWPJRegistrationAPIMode)
8693
@property (nonatomic) BOOL operateOnPrimaryWPJ;
8794
@property (nonatomic) BOOL useMostSecureStorageForWpj;
8895
@property (nonatomic) BOOL isSecureEnclaveSupportedForWpj;
96+
@property (nonatomic) MSIDAutomationWPJSSOExtensionSecureStorage ssoExtensionSecureStorageEnabled;
8997
@property (nonatomic) BOOL shouldExpirePRT;
9098
@property (nonatomic) BOOL isSsoSeedingCompleted;
9199
@property (nonatomic) BOOL shouldOnlyDeleteSeedingPrt;

IdentityCore/tests/automation/shared/MSIDAutomationTestRequest.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ - (instancetype)initWithJSONDictionary:(NSDictionary *)json
103103
_operateOnPrimaryWPJ = [json[@"wpj_operate_on_primary_reg"] boolValue];
104104
_useMostSecureStorageForWpj = [json[@"use_most_secure_storage"] boolValue];
105105
_isSecureEnclaveSupportedForWpj = [json[@"wpj_secure_enclave_supported"] boolValue];
106+
_ssoExtensionSecureStorageEnabled = (MSIDAutomationWPJSSOExtensionSecureStorage)[json[@"wpj_sso_extension_secure_storage_enabled"] integerValue];
106107
_shouldExpirePRT = [json[@"should_expire_prt"] boolValue];
107108
_isSsoSeedingCompleted = [json[@"is_sso_seeding_completed"] boolValue];
108109
_shouldOnlyDeleteSeedingPrt = [json[@"should_only_delete_seeding_prt"] boolValue];
@@ -184,6 +185,7 @@ - (NSDictionary *)jsonDictionary
184185
json[@"wpj_operate_on_primary_reg"] = @(_operateOnPrimaryWPJ);
185186
json[@"use_most_secure_storage"] = @(_useMostSecureStorageForWpj);
186187
json[@"wpj_secure_enclave_supported"] = @(_isSecureEnclaveSupportedForWpj);
188+
json[@"wpj_sso_extension_secure_storage_enabled"] = @(_ssoExtensionSecureStorageEnabled);
187189
json[@"should_expire_prt"] = @(_shouldExpirePRT);
188190
json[@"is_sso_seeding_completed"] = @(_isSsoSeedingCompleted);
189191
json[@"should_only_delete_seeding_prt"] = @(_shouldOnlyDeleteSeedingPrt);

0 commit comments

Comments
 (0)