Skip to content
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

Separate B2C logic from AAD v2 #267

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions IdentityCore/IdentityCore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@
B253BD7A20487C8A00D07F31 /* MSIDLegacyTokenCacheIntegrationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B23ECF041FF33AE70015FC1D /* MSIDLegacyTokenCacheIntegrationTests.m */; };
B2544EEB21684B2B00B4C108 /* MSIDCacheSchemaValidationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2544EEA21684B2B00B4C108 /* MSIDCacheSchemaValidationTests.m */; };
B2544EEC21684B2B00B4C108 /* MSIDCacheSchemaValidationTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2544EEA21684B2B00B4C108 /* MSIDCacheSchemaValidationTests.m */; };
B2561224217EA97000999876 /* MSIDB2COauth2FactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2561221217EA93800999876 /* MSIDB2COauth2FactoryTests.m */; };
B2561225217EA97000999876 /* MSIDB2COauth2FactoryTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2561221217EA93800999876 /* MSIDB2COauth2FactoryTests.m */; };
B25A356F1FC4D70300C7FD43 /* MSIDLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = B25A356B1FC4D6B600C7FD43 /* MSIDLogger.m */; };
B25A35701FC4D70300C7FD43 /* MSIDLogger.m in Sources */ = {isa = PBXBuildFile; fileRef = B25A356B1FC4D6B600C7FD43 /* MSIDLogger.m */; };
B26A0B7D2071ADCE006BD95A /* MSIDOauth2Factory.h in Headers */ = {isa = PBXBuildFile; fileRef = B26A0B7B2071ADCE006BD95A /* MSIDOauth2Factory.h */; };
Expand Down Expand Up @@ -530,6 +532,15 @@
B280800B204CD81400944D89 /* MSIDLegacyCacheKeyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B2808009204CD81400944D89 /* MSIDLegacyCacheKeyTests.m */; };
B280800E204CD82100944D89 /* MSIDDefaultCredentialCacheKeyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B280800C204CD82100944D89 /* MSIDDefaultCredentialCacheKeyTests.m */; };
B2893CB11FCF6A8C00E348E9 /* NSMutableDictionary+MSIDExtensions.m in Sources */ = {isa = PBXBuildFile; fileRef = 23BDA66D1FC78B7E00FE14BE /* NSMutableDictionary+MSIDExtensions.m */; };
B28BDA7A217E961F003E5670 /* MSIDB2COauth2Factory.h in Headers */ = {isa = PBXBuildFile; fileRef = B28BDA78217E961F003E5670 /* MSIDB2COauth2Factory.h */; };
B28BDA7B217E961F003E5670 /* MSIDB2COauth2Factory.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA79217E961F003E5670 /* MSIDB2COauth2Factory.m */; };
B28BDA7C217E961F003E5670 /* MSIDB2COauth2Factory.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA79217E961F003E5670 /* MSIDB2COauth2Factory.m */; };
B28BDA7F217E964B003E5670 /* MSIDB2CTokenResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = B28BDA7D217E964B003E5670 /* MSIDB2CTokenResponse.h */; };
B28BDA80217E964B003E5670 /* MSIDB2CTokenResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA7E217E964B003E5670 /* MSIDB2CTokenResponse.m */; };
B28BDA81217E964B003E5670 /* MSIDB2CTokenResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA7E217E964B003E5670 /* MSIDB2CTokenResponse.m */; };
B28BDA84217E9676003E5670 /* MSIDB2CIdTokenClaims.h in Headers */ = {isa = PBXBuildFile; fileRef = B28BDA82217E9676003E5670 /* MSIDB2CIdTokenClaims.h */; };
B28BDA85217E9676003E5670 /* MSIDB2CIdTokenClaims.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA83217E9676003E5670 /* MSIDB2CIdTokenClaims.m */; };
B28BDA86217E9676003E5670 /* MSIDB2CIdTokenClaims.m in Sources */ = {isa = PBXBuildFile; fileRef = B28BDA83217E9676003E5670 /* MSIDB2CIdTokenClaims.m */; };
B2908C071FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = B2908C051FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.h */; };
B2908C081FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = B2908C061FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.m */; };
B2908C091FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.m in Sources */ = {isa = PBXBuildFile; fileRef = B2908C061FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.m */; };
Expand Down Expand Up @@ -1167,6 +1178,7 @@
B251CC54204109A4005E0179 /* MSIDCredentialCacheItem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDCredentialCacheItem.m; sourceTree = "<group>"; };
B252913A2096698100E78695 /* MSIDAADIdTokenClaimsFactoryTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDAADIdTokenClaimsFactoryTests.m; sourceTree = "<group>"; };
B2544EEA21684B2B00B4C108 /* MSIDCacheSchemaValidationTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDCacheSchemaValidationTests.m; sourceTree = "<group>"; };
B2561221217EA93800999876 /* MSIDB2COauth2FactoryTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDB2COauth2FactoryTests.m; sourceTree = "<group>"; };
B25A35691FC4D6B600C7FD43 /* MSIDLogger+Internal.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "MSIDLogger+Internal.h"; sourceTree = "<group>"; };
B25A356A1FC4D6B600C7FD43 /* MSIDLogger.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSIDLogger.h; sourceTree = "<group>"; };
B25A356B1FC4D6B600C7FD43 /* MSIDLogger.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDLogger.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1213,6 +1225,12 @@
B2808009204CD81400944D89 /* MSIDLegacyCacheKeyTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDLegacyCacheKeyTests.m; sourceTree = "<group>"; };
B280800C204CD82100944D89 /* MSIDDefaultCredentialCacheKeyTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDDefaultCredentialCacheKeyTests.m; sourceTree = "<group>"; };
B2893CAE1FCF68B200E348E9 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Security.framework; sourceTree = DEVELOPER_DIR; };
B28BDA78217E961F003E5670 /* MSIDB2COauth2Factory.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSIDB2COauth2Factory.h; sourceTree = "<group>"; };
B28BDA79217E961F003E5670 /* MSIDB2COauth2Factory.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDB2COauth2Factory.m; sourceTree = "<group>"; };
B28BDA7D217E964B003E5670 /* MSIDB2CTokenResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSIDB2CTokenResponse.h; sourceTree = "<group>"; };
B28BDA7E217E964B003E5670 /* MSIDB2CTokenResponse.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDB2CTokenResponse.m; sourceTree = "<group>"; };
B28BDA82217E9676003E5670 /* MSIDB2CIdTokenClaims.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSIDB2CIdTokenClaims.h; sourceTree = "<group>"; };
B28BDA83217E9676003E5670 /* MSIDB2CIdTokenClaims.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDB2CIdTokenClaims.m; sourceTree = "<group>"; };
B2908C051FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MSIDTelemetryBaseEvent.h; sourceTree = "<group>"; };
B2908C061FCA29EB00AFE98E /* MSIDTelemetryBaseEvent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDTelemetryBaseEvent.m; sourceTree = "<group>"; };
B2936F4C20AA906C0050C585 /* MSIDLegacyTokenCacheItemTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MSIDLegacyTokenCacheItemTests.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1905,6 +1923,7 @@
B210F4541FDDFA7B005A8F76 /* MSIDBrokerResponse.m */,
B2CDB57A1FE33E99003A4B5C /* MSIDIdTokenClaims.h */,
B2CDB57B1FE33E9A003A4B5C /* MSIDIdTokenClaims.m */,
B28BDA77217E95D9003E5670 /* b2c */,
B2B1D575204369CA00DD81F0 /* account */,
B251CC232041050E005E0179 /* token */,
B23ECEE71FF2F3F30015FC1D /* aad_base */,
Expand Down Expand Up @@ -2097,6 +2116,19 @@
path = keyvault;
sourceTree = "<group>";
};
B28BDA77217E95D9003E5670 /* b2c */ = {
isa = PBXGroup;
children = (
B28BDA78217E961F003E5670 /* MSIDB2COauth2Factory.h */,
B28BDA79217E961F003E5670 /* MSIDB2COauth2Factory.m */,
B28BDA7D217E964B003E5670 /* MSIDB2CTokenResponse.h */,
B28BDA7E217E964B003E5670 /* MSIDB2CTokenResponse.m */,
B28BDA82217E9676003E5670 /* MSIDB2CIdTokenClaims.h */,
B28BDA83217E9676003E5670 /* MSIDB2CIdTokenClaims.m */,
);
path = b2c;
sourceTree = "<group>";
};
B29CB6D11FEC9B4D00F880ED /* aad_v2 */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -2416,6 +2448,7 @@
B26A0B922072B824006BD95A /* MSIDAADOauth2FactoryTests.m */,
B26A0B952072B9CB006BD95A /* MSIDAADV1Oauth2FactoryTests.m */,
B26A0B982072BABD006BD95A /* MSIDAADV2Oauth2FactoryTests.m */,
B2561221217EA93800999876 /* MSIDB2COauth2FactoryTests.m */,
2338ECD9208A7CBD00809B9E /* MSIDAADRequestErrorHandlerTests.m */,
238EF07F208FFA4C0035ABE6 /* MSIDUrlRequestSerializerTests.m */,
238EF08220913D750035ABE6 /* MSIDAADRequestConfiguratorTests.m */,
Expand Down Expand Up @@ -2480,6 +2513,7 @@
96CD69521FE849C800D41938 /* MSIDTokenResponse.h in Headers */,
238E19E02086FE28004DF483 /* MSIDAADRefreshTokenGrantRequest.h in Headers */,
235480CA20DDF81000246F72 /* MSIDAuthorityFactory.h in Headers */,
B28BDA7A217E961F003E5670 /* MSIDB2COauth2Factory.h in Headers */,
23B39A8B209A53B7000AA905 /* MSIDDRSDiscoveryRequest.h in Headers */,
9641B5241FCF3EEF00AFA0EC /* MSIDMacTokenCache.h in Headers */,
B2CDB5761FE2F4E2003A4B5C /* NSOrderedSet+MSIDExtensions.h in Headers */,
Expand Down Expand Up @@ -2511,6 +2545,7 @@
9686C72921192BCF001FFF51 /* MSIDWebOpenBrowserResponse.h in Headers */,
B2B1D578204369D600DD81F0 /* MSIDAccountType.h in Headers */,
9658103120C7E1180025F4A4 /* MSIDWebviewResponse.h in Headers */,
B28BDA7F217E964B003E5670 /* MSIDB2CTokenResponse.h in Headers */,
96B8D57D20946D2600E3F4A6 /* MSIDPkce.h in Headers */,
B297E1E120A1272600F370EC /* MSIDLegacyTokenCacheQuery.h in Headers */,
B297E1F020A25F0C00F370EC /* MSIDLegacyTokenCacheItem.h in Headers */,
Expand Down Expand Up @@ -2591,6 +2626,7 @@
96F94A3320817C1A0034676C /* MSIDNTLMHandler.h in Headers */,
B297E1E620A12BDE00F370EC /* MSIDDefaultAccountCacheKey.h in Headers */,
B251CC3B2041058D005E0179 /* MSIDRefreshToken.h in Headers */,
B28BDA84217E9676003E5670 /* MSIDB2CIdTokenClaims.h in Headers */,
23B39AB7209BC705000AA905 /* MSIDOpenIdProviderMetadata.h in Headers */,
238A04932089A3C800989EE0 /* MSIDHttpRequestTelemetry.h in Headers */,
23B39A8120993302000AA905 /* MSIDAadAuthorityResolver.h in Headers */,
Expand Down Expand Up @@ -2968,6 +3004,7 @@
B2936F7F20ABFF8F0050C585 /* MSIDOauth2FactoryTests.m in Sources */,
9668B6F72148796A0039AB0A /* MSIDDataExtensionsTests.m in Sources */,
B252913B2096698100E78695 /* MSIDAADIdTokenClaimsFactoryTests.m in Sources */,
B2561224217EA97000999876 /* MSIDB2COauth2FactoryTests.m in Sources */,
B2936F8A20AD47810050C585 /* MSIDKeychainTokenCacheIntegrationTests.m in Sources */,
6035CD8C207EA67300369E69 /* MSIDTelemetryIntegrationTests.m in Sources */,
B2DD4B3D20A9270B0047A66E /* MSIDDefaultCredentialCacheQueryTests.m in Sources */,
Expand Down Expand Up @@ -3066,6 +3103,7 @@
606830102098E94100CCA6AB /* MSIDCertificateChooser.m in Sources */,
60B3856020A96E2700D546D0 /* MSIDWebviewUIController.m in Sources */,
B251CC412041058D005E0179 /* MSIDRefreshToken.m in Sources */,
B28BDA7C217E961F003E5670 /* MSIDB2COauth2Factory.m in Sources */,
2338ECD8208A7B3200809B9E /* MSIDTestContext.m in Sources */,
B2CDB56D1FE2F42B003A4B5C /* MSIDJsonSerializer.m in Sources */,
9658103320C7E1180025F4A4 /* MSIDWebviewResponse.m in Sources */,
Expand Down Expand Up @@ -3116,6 +3154,7 @@
966D0A8620A0E9F300EDDE94 /* MSIDNetworkConfiguration.m in Sources */,
B2D5625A20CCD50E00FFF59C /* MSIDTelemetry+Cache.m in Sources */,
B2A3C2802145D02E0082525C /* MSIDAadAuthorityCacheRecord.m in Sources */,
B28BDA81217E964B003E5670 /* MSIDB2CTokenResponse.m in Sources */,
9641B52B1FCF3F3A00AFA0EC /* MSIDKeyedArchiverSerializer.m in Sources */,
238E19E32086FE28004DF483 /* MSIDAADAuthorizationCodeRequest.m in Sources */,
23B39AB9209BC705000AA905 /* MSIDOpenIdProviderMetadata.m in Sources */,
Expand Down Expand Up @@ -3158,6 +3197,7 @@
238EF044208FE88C0035ABE6 /* MSIDAADAuthorizationCodeGrantRequest.m in Sources */,
238E19C22086FC38004DF483 /* MSIDJsonResponseSerializer.m in Sources */,
238E19C52086FC38004DF483 /* MSIDHttpResponseSerializer.m in Sources */,
B28BDA86217E9676003E5670 /* MSIDB2CIdTokenClaims.m in Sources */,
B2B1D57A204369D600DD81F0 /* MSIDAccountType.m in Sources */,
B210F4571FDDFA7B005A8F76 /* MSIDBrokerResponse.m in Sources */,
23B39AC8209BF9F2000AA905 /* MSIDOpenIdConfigurationInfoRequest.m in Sources */,
Expand Down Expand Up @@ -3248,6 +3288,7 @@
2338ECDB208A7CBD00809B9E /* MSIDAADRequestErrorHandlerTests.m in Sources */,
964FAB41213F598F00AF0EB1 /* MSIDOrderedSetExtensionsTests.m in Sources */,
B2C17AF51FC7A6BD0070A514 /* MSIDTestLogger.m in Sources */,
B2561225217EA97000999876 /* MSIDB2COauth2FactoryTests.m in Sources */,
B280800E204CD82100944D89 /* MSIDDefaultCredentialCacheKeyTests.m in Sources */,
23CC94482046507D00AA0551 /* MSIDMacTokenCacheIntegrationTests.m in Sources */,
B2964BE620521D790000BC95 /* MSIDTokenFilteringHelperTests.m in Sources */,
Expand Down Expand Up @@ -3355,12 +3396,14 @@
60B3855E20A96E0600D546D0 /* MSIDWebviewUIController.m in Sources */,
238E19E22086FE28004DF483 /* MSIDAADAuthorizationCodeRequest.m in Sources */,
B2964BE2205103920000BC95 /* MSIDTokenFilteringHelper.m in Sources */,
B28BDA7B217E961F003E5670 /* MSIDB2COauth2Factory.m in Sources */,
239DF9AE20DED6F7002D428B /* MSIDConstants.m in Sources */,
B20657AA1FC91ECC00412B7D /* MSIDTelemetry.m in Sources */,
B25A35701FC4D70300C7FD43 /* MSIDLogger.m in Sources */,
B210F4321FDDE7EB005A8F76 /* MSIDTokenResponse.m in Sources */,
600D19AE20964CC00004CD43 /* MSIDRegistrationInformation.m in Sources */,
B2C7B3B4213C681F009FFCC1 /* MSIDErrorConverter.m in Sources */,
B28BDA85217E9676003E5670 /* MSIDB2CIdTokenClaims.m in Sources */,
B210F4381FDDEA23005A8F76 /* MSIDAADV1TokenResponse.m in Sources */,
600D19B620964D2F0004CD43 /* MSIDWorkPlaceJoinConstants.m in Sources */,
96B8D57B20946D2600E3F4A6 /* MSIDPkce.m in Sources */,
Expand Down Expand Up @@ -3445,6 +3488,7 @@
2321531B1FDA101900C6960D /* MSIDUserInformation.m in Sources */,
232C65842138BD11002A41FE /* MSIDAADAuthorityMetadataResponseSerializer.m in Sources */,
B23ECEEB1FF2F56A0015FC1D /* MSIDAADTokenResponse.m in Sources */,
B28BDA80217E964B003E5670 /* MSIDB2CTokenResponse.m in Sources */,
600D19BC20964D8C0004CD43 /* MSIDWorkPlaceJoinUtil.m in Sources */,
B251CC3C2041058D005E0179 /* MSIDAccessToken.m in Sources */,
B2DD4B2220A7D2F90047A66E /* MSIDLegacyAccessToken.m in Sources */,
Expand Down
4 changes: 4 additions & 0 deletions IdentityCore/src/oauth2/aad_v2/MSIDAADV2Oauth2Factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@

@interface MSIDAADV2Oauth2Factory : MSIDAADOauth2Factory

- (MSIDAuthority *)authorityFromURL:(NSURL *)url
tokenResponse:(MSIDTokenResponse *)response
error:(NSError **)error;

@end
30 changes: 13 additions & 17 deletions IdentityCore/src/oauth2/aad_v2/MSIDAADV2Oauth2Factory.m
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@ - (BOOL)fillAccessToken:(MSIDAccessToken *)accessToken
}

accessToken.scopes = responseScopes;

__auto_type authority = [self.authorityFactory authorityFromUrl:accessToken.authority.url rawTenant:response.idTokenObj.realm context:nil error:nil];

accessToken.authority = authority;
accessToken.authority = [self authorityFromURL:accessToken.authority.url tokenResponse:response error:nil];

return YES;
}
Expand All @@ -158,10 +155,8 @@ - (BOOL)fillIDToken:(MSIDIdToken *)token
{
return NO;
}

__auto_type authority = [self.authorityFactory authorityFromUrl:token.authority.url rawTenant:response.idTokenObj.realm context:nil error:nil];

token.authority = authority;
token.authority = [self authorityFromURL:token.authority.url tokenResponse:response error:nil];

return YES;
}
Expand All @@ -181,20 +176,21 @@ - (BOOL)fillAccount:(MSIDAccount *)account
{
return NO;
}

__auto_type authority = [self.authorityFactory authorityFromUrl:account.authority.url rawTenant:response.idTokenObj.realm context:nil error:nil];

account.authority = authority;

// AAD v2 has to return preferred_username claim
if ([NSString msidIsStringNilOrBlank:response.idTokenObj.preferredUsername])
{
account.username = MSID_PREFERRED_USERNAME_MISSING;
}

account.authority = [self authorityFromURL:account.authority.url tokenResponse:response error:nil];
return YES;
}

- (MSIDAuthority *)authorityFromURL:(NSURL *)url
tokenResponse:(MSIDTokenResponse *)response
error:(NSError **)error
{
return [self.authorityFactory authorityFromUrl:url
rawTenant:response.idTokenObj.realm
context:nil
error:error];
}

#pragma mark - Webview
- (MSIDWebviewFactory *)webviewFactory
{
Expand Down
39 changes: 39 additions & 0 deletions IdentityCore/src/oauth2/b2c/MSIDB2CIdTokenClaims.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions :
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//------------------------------------------------------------------------------

#import "MSIDAADV2IdTokenClaims.h"

NS_ASSUME_NONNULL_BEGIN

@interface MSIDB2CIdTokenClaims : MSIDAADV2IdTokenClaims

// This is the name of the policy that was used to acquire the ID token.
@property (readonly) NSString *tfp;

@end

NS_ASSUME_NONNULL_END
Loading