public void DeleteIdToken(MsalIdTokenCacheKey cacheKey)
        {
            var account = cacheKey.GetiOSAccountKey();
            var service = cacheKey.GetiOSServiceKey();

            var type = (int)CredentialAttrType.IdToken;

            Remove(account, service, type);
        }
        public string GetIdToken(MsalIdTokenCacheKey idTokenKey)
        {
            var account = idTokenKey.GetiOSAccountKey();
            var service = idTokenKey.GetiOSServiceKey();

            var type = (int)CredentialAttrType.IdToken;

            return(GetValue(account, service, type));
        }
        public void MsalIdTokenCacheKey()
        {
            MsalIdTokenCacheKey key = new MsalIdTokenCacheKey("login.microsoftonline.com", "contoso.com", "uid.utid", "clientid");

            Assert.AreEqual("uid.utid-login.microsoftonline.com-idtoken-clientid-contoso.com-", key.ToString());

            Assert.AreEqual("uid.utid-login.microsoftonline.com", key.GetiOSAccountKey());
            Assert.AreEqual("idtoken-clientid-contoso.com-", key.GetiOSServiceKey());
            Assert.AreEqual("idtoken-clientid-contoso.com", key.GetiOSGenericKey());
        }