Options
All
  • Public
  • Public/Protected
  • All
Menu

Type that defines required and optional parameters for an Account field (based on universal cache schema implemented by all MSALs).

Key : Value Schema

Key: --<realm*>

Value Schema: { homeAccountId: home account identifier for the auth scheme, environment: entity that issued the token, represented as a full host realm: Full tenant or organizational identifier that the account belongs to localAccountId: Original tenant-specific accountID, usually used for legacy cases username: primary username that represents the user, usually corresponds to preferred_username in the v2 endpt authorityType: Accounts authority type as a string name: Full name for the account, including given name and family name, clientInfo: Full base64 encoded client info received from ESTS lastModificationTime: last time this entity was modified in the cache lastModificationApp: oboAssertion: access token passed in as part of OBO request idTokenClaims: Object containing claims parsed from ID token }

Hierarchy

  • AccountEntity

Index

Constructors

constructor

Properties

authorityType

authorityType: string

Optional clientInfo

clientInfo: string

Optional cloudGraphHostName

cloudGraphHostName: string

environment

environment: string

homeAccountId

homeAccountId: string

Optional idTokenClaims

idTokenClaims: TokenClaims

Optional lastModificationApp

lastModificationApp: string

Optional lastModificationTime

lastModificationTime: string

localAccountId

localAccountId: string

Optional msGraphHost

msGraphHost: string

Optional name

name: string

Optional oboAssertion

oboAssertion: string

realm

realm: string

username

username: string

Methods

generateAccountId

  • generateAccountId(): string

generateAccountKey

  • generateAccountKey(): string

generateType

  • generateType(): number

getAccountInfo

Static accountInfoIsEqual

Static createAccount

  • createAccount(clientInfo: string, homeAccountId: string, idToken: AuthToken, authority?: Authority, oboAssertion?: string, cloudGraphHostName?: string, msGraphHost?: string, environment?: string): AccountEntity

Static createGenericAccount

  • createGenericAccount(homeAccountId: string, idToken: AuthToken, authority?: Authority, oboAssertion?: string, cloudGraphHostName?: string, msGraphHost?: string, environment?: string): AccountEntity

Static generateAccountCacheKey

  • generateAccountCacheKey(accountInterface: AccountInfo): string

Static generateHomeAccountId

Static isAccountEntity

  • isAccountEntity(entity: object): boolean

Generated using TypeDoc