module Sfx { export class AuthenticationBootstrapConstants { public static GetAadMetadataUriPart : string = "/$/GetAadMetadata?api-version=1.0" ; public static AadAuthType = "aad" ; public static AdalCacheType = "localStorage" ; } export class AadMetadata extends DataModelBase < IRawAadMetadata > { public constructor ( raw ) { super ( null , raw ) ; } public get metadata ( ) : IRawAadMetadataMetadata { if ( this . raw ) { return this . raw . metadata ; } return null ; } public get isAadAuthType ( ) : boolean { return this . raw && this . raw . type === AuthenticationBootstrapConstants . AadAuthType ; } } }