Skip to content

Commit 1ba2e9c

Browse files
author
Swasti Gupta
committed
Move properties to protocol
1 parent 829a786 commit 1ba2e9c

File tree

5 files changed

+16
-48
lines changed

5 files changed

+16
-48
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Removed deprecated methods from native auth public interface (#2588)
55
* Removed the deprecated MSALLogger interface and implementation class (#2591)
66
* Enforced a valid broker-capable redirect URI format for AAD scenarios (#2592)
7-
* Merged the MSALAccount (MultiTenantAccount) category into the MSALAccount class and removed the MSALAccount+MultiTenantAccount.h (#2594)
7+
* Merged the MSALAccount (MultiTenantAccount) category into the MSALAccount protocol and removed the MSALAccount+MultiTenantAccount.h (#2594)
88

99
## [1.9.0]
1010
* Add feature flags provider to be controlled from broker (#2540)

MSAL/src/configuration/external/ios/MSALLegacySharedAccount.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ NS_ASSUME_NONNULL_BEGIN
5656
@property (nonatomic, readonly) NSString *accountIdentifier;
5757
@property (nonatomic, readonly) NSDictionary *signinStatusDictionary;
5858
@property (nonatomic, readonly) NSString *username;
59+
@property (nonatomic, readonly) NSArray<MSALTenantProfile *> *tenantProfiles;
60+
@property (nonatomic, readonly) MSALAccountId *homeAccountId;
61+
@property (nonatomic, readonly) BOOL isSSOAccount;
5962

6063
- (nullable instancetype)initWithJSONDictionary:(NSDictionary *)jsonDictionary error:(NSError * _Nullable * _Nullable)error;
6164
- (BOOL)matchesParameters:(MSALAccountEnumerationParameters *)parameters;

MSAL/src/configuration/external/ios/MSALLegacySharedAccount.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ @interface MSALLegacySharedAccount()
3131

3232
@property (nonatomic, readwrite) NSDictionary *jsonDictionary;
3333
@property (nonatomic, readwrite) NSString *username;
34-
34+
@property (nonatomic, readwrite) NSArray<MSALTenantProfile *> *tenantProfiles;
35+
@property (nonatomic, readwrite) MSALAccountId *homeAccountId;
36+
@property (nonatomic, readwrite) BOOL isSSOAccount;
3537
@end
3638

3739
static NSDateFormatter *s_updateDateFormatter = nil;

MSAL/src/public/MSALAccount+MultiTenantAccount.h

Lines changed: 0 additions & 37 deletions
This file was deleted.

MSAL/src/public/MSALAccount.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,6 @@
8181
*/
8282
@property (readonly, nullable) NSDictionary<NSString *, id> *accountClaims;
8383

84-
@end
85-
86-
/**
87-
Representation of an authenticated account in the Microsoft identity platform. MSALAccount class implements `MSALAccount` protocol.
88-
@note MSALAccount should be never created directly by an application.
89-
Instead, it is returned by MSAL as a result of getting a token interactively or silently (see `MSALResult`), or looked up by MSAL from cache (e.g. see `-[MSALPublicClientApplication allAccounts:]`)
90-
*/
91-
@interface MSALAccount : NSObject <MSALAccount, NSCopying>
92-
9384
#pragma mark - Getting information about account in different AAD tenants
9485

9586
/**
@@ -116,6 +107,15 @@
116107
*/
117108
@property (readonly) BOOL isSSOAccount;
118109

110+
@end
111+
112+
/**
113+
Representation of an authenticated account in the Microsoft identity platform. MSALAccount class implements `MSALAccount` protocol.
114+
@note MSALAccount should be never created directly by an application.
115+
Instead, it is returned by MSAL as a result of getting a token interactively or silently (see `MSALResult`), or looked up by MSAL from cache (e.g. see `-[MSALPublicClientApplication allAccounts:]`)
116+
*/
117+
@interface MSALAccount : NSObject <MSALAccount, NSCopying>
118+
119119
/**
120120
`-[MSALAccount new]` is unavailable.
121121
@note MSALAccount should be never created directly.

0 commit comments

Comments
 (0)