Skip to content

Commit 44395b7

Browse files
authored
Merge pull request #1550 from AzureAD/mipetriu/psso_reg_flag
Add flag for PSSO registration in progress to MSDIExternalSSOContext
2 parents 354203f + c742d18 commit 44395b7

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

IdentityCore/src/oauth2/MSIDExternalSSOContext.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ NS_ASSUME_NONNULL_BEGIN
3737
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 130000
3838
@property (nonatomic, nullable, strong) ASAuthorizationProviderExtensionLoginManager *loginManager API_AVAILABLE(macos(13.0));
3939
@property (nonatomic) BOOL isDeviceRegistered API_AVAILABLE(macos(13.0));
40+
@property (nonatomic) BOOL isPlatformSSORegistrationFlow API_AVAILABLE(macos(13.0));
4041
#endif
4142
#endif
4243

IdentityCore/src/oauth2/token/MSIDPrimaryRefreshToken.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ typedef NS_ENUM(NSInteger, MSIDExternalPRTKeyLocationType)
4949
@property (nonatomic) MSIDExternalPRTKeyLocationType externalKeyLocationType;
5050

5151
- (BOOL)isDevicelessPRT;
52+
- (BOOL)isDevicelessPRTv3;
5253
- (BOOL)shouldRefreshWithInterval:(NSUInteger)refreshInterval;
5354
- (NSUInteger)prtId;
5455

IdentityCore/src/oauth2/token/MSIDPrimaryRefreshToken.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ - (BOOL)isDevicelessPRT
216216
return prtVersion >= 3.0 && [NSString msidIsStringNilOrBlank:self.deviceID];
217217
}
218218

219+
- (BOOL)isDevicelessPRTv3
220+
{
221+
CGFloat prtVersion = [self.prtProtocolVersion floatValue];
222+
return prtVersion == 3.0 && [NSString msidIsStringNilOrBlank:self.deviceID];
223+
}
224+
219225
- (BOOL)shouldRefreshWithInterval:(NSUInteger)refreshInterval
220226
{
221227
if (!self.expiresOn)

0 commit comments

Comments
 (0)