public void TestStoreLoad() { //Act inMemoryCredentialStore.Store(userId, ssoGroupKey, credential); var existingCredential = inMemoryCredentialStore.Load(userId, ssoGroupKey); //Assert Assert.IsNotNull(existingCredential); }
/// <summary> /// Loads the credential of a provided user._id from the previously configured Credential Store. /// </summary> /// <returns>The credential.</returns> /// <param name="userId">User _id.</param> /// <param name="ssoGroupKey">SSO Group Key.</param> public Credential LoadCredential(string userId, string ssoGroupKey) { if (credentialStore == null) { return(null); } else { return(credentialStore.Load(userId, ssoGroupKey)); } }