-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add SsoExt identifier into MSIDDeviceInfo #1488
base: dev
Are you sure you want to change the base?
Conversation
@@ -69,6 +69,7 @@ extern NSString * _Nonnull const MSID_BROKER_DEVICE_MODE_KEY; | |||
extern NSString * _Nonnull const MSID_BROKER_SSO_EXTENSION_MODE_KEY; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request does not update changelog.txt.
Please consider if this change would be noticeable to a partner or user and either update changelog.txt or resolve this conversation.
@@ -55,6 +55,12 @@ typedef NS_ENUM(NSInteger, MSIDPreferredAuthMethod) | |||
MSIDPreferredAuthMethodQRPIN | |||
}; | |||
|
|||
typedef NS_ENUM(NSInteger, MSIDSsoProviderType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be beneficial to make this enum available in a separate header file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are other enums in this file as of today, we can move out when more enums coming for better management
|
||
- (MSIDSsoProviderType)ssoProviderTypeEnumFromString:(NSString *)deviceModeString | ||
{ | ||
if ([deviceModeString isEqualToString:@"companyPortal"]) return MSIDCompanyPortalSsoProvider; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a static dictionary <string, MSIDSsoProviderType> instead of if statements and return value for key. Return unknown by default in no matching key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ameyapat, cannot put MSIDSsoProviderType
into dictionary as NSInteger is not supported neither as a key or value. I can convert MSIDSsoProviderType
value to an NSNumber and save it into a dict, let me know.
Co-authored-by: Ameya Patil <[email protected]>
Proposed changes
This is to add a new filed to return SsoExtension type
Type of change
Risk
Additional information