Skip to content

Commit c742d18

Browse files
committed
rename PSSO reg flag and add a new deviceless prt v3 method
1 parent 78263bb commit c742d18

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

IdentityCore/src/oauth2/MSIDExternalSSOContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +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 isPSSORegistration API_AVAILABLE(macos(13.0));
40+
@property (nonatomic) BOOL isPlatformSSORegistrationFlow API_AVAILABLE(macos(13.0));
4141
#endif
4242
#endif
4343

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)