public override string ToString() { return(MsalCacheCommon.GetCredentialKey( _homeAccountId, _environment, MsalCacheCommon.RefreshToken, _clientId, tenantId: null, scopes: null)); }
public override string ToString() { return(MsalCacheCommon.GetCredentialKey( _homeAccountId, _environment, MsalCacheCommon.AccessToken, _clientId, _tenantId, _normalizedScopes)); }
/// <summary> /// Gets a key that is smaller than 255 characters, which is a limitation for /// UWP storage. This is done by hashing the scopes and env. /// </summary> /// <remarks> /// accountId - two guids plus separator - 73 chars /// "accesstoken" string - 11 chars /// env - ussually loging.microsoft.net - 20 chars /// clientid - a guid - 36 chars /// tenantid - a guid - 36 chars /// scopes - a sha256 string - 44 chars /// delimiters - 4 chars /// total: 224 chars /// </remarks> public string GetUWPFixedSizeKey() { var crypto = PlatformProxyFactory.GetPlatformProxy().CryptographyManager; return(MsalCacheCommon.GetCredentialKey( _homeAccountId, _environment, MsalCacheCommon.AccessToken, _clientId, _tenantId, crypto.CreateSha256Hash(_normalizedScopes))); // can't use scopes and env because they are of variable length }
public string GetiOSGenericKey() { return(MsalCacheCommon.GetiOSGenericKey(MsalCacheCommon.RefreshToken, _clientId, tenantId: null)); }
public string GetiOSServiceKey() { return(MsalCacheCommon.GetiOSServiceKey(MsalCacheCommon.RefreshToken, _clientId, tenantId: null, scopes: null)); }
public string GetiOSAccountKey() { return(MsalCacheCommon.GetiOSAccountKey(_homeAccountId, _environment)); }
public string GetiOSGenericKey() { return(MsalCacheCommon.GetiOSGenericKey(MsalCacheCommon.AccessToken, _clientId, _tenantId)); }
public string GetiOSServiceKey() { return(MsalCacheCommon.GetiOSServiceKey(MsalCacheCommon.AccessToken, _clientId, _tenantId, _normalizedScopes)); }
public string GetiOSServiceKey() { return(MsalCacheCommon.GetiOSServiceKey(MsalCacheCommon.IdToken, _clientId, _tenantId, scopes: null)); }