You do not have a rental agreement with the bank just because the property was foreclosed on - unless there is a clause in your rental agreement. The bank will probably go through the process of having you evicted from the property at some point in time, subject to Fed/CA/local laws.
The following should help in regards to your situation (from the CAR website):
In May 2009, the federal government enacted the "Protecting Tenants at Foreclosure Act" giving tenants new protections, such as the right to stay in their homes for at least 90 days after receiving an eviction notice. While state and local laws also contain strong protections, unlawful evictions and harassment of tenants continue.
Tenants should know their rights under the law. These rights include:
-Tenants cannot be required to move out of their homes for at least 90 days following an eviction notice.
-Tenants can insist on staying until the end of their leases. The only exception occurs when the new owner of a single-family home wants to move in.
-Tenants can require banks and their agents to put all communication in writing.
-Tenants are not obliged to accept "cash for keys" money to move out sooner than the law prescribes.
-Harassment, such as improper entry into a person's home, shutting off water and lights, or changing the locks without a court order is illegal.
-The above rights extend to tenants living in government-subsidized Section 8 housing, who may also have additional protections under state and local laws.
-If a city has a just cause for eviction law, a landlord must have a specific reason to evict a tenant, and foreclosure may not be recognized as a legitimate basis for eviction. Tenants should check local ordinances.
Sixteen cities in California have just cause for eviction ordinances: Berkeley, Beverly Hills, East Palo Alto, Glendale, Hayward, Los Angeles, Maywood, Oakland, Palm Springs, Richmond, Ridgecrest, San Diego, San Francisco, Santa Monica, Thousand Oaks, and West Hollywood.
If you ever believe your rights as a tenant have been violated you can file a complaint with the Attorney General's Public Inquiry Unit at http://ag.ca.gov/consumers/general.php
Talk with a real estate attorney to best understand what your rights are and expert advice. Good luck to you and I hope I helped a bit.
Diane Wheatley, Broker
Can't tell from your question if you owned the house and it's been foreclosed upon or if your landlord was the one who defaulted. If you're a tenant, then you have all the rights like you did before: http://www.sftu.org/sale.html And, if the bank is really not willing to accept your rent, I'd put it into an escrow account and keep all the deposit slips to show that you were ready, willing and able to perform on your rental obligations. Let me know if you need more.
Paragon Real Estate Group
CA DRE 01844627
Your contract was with the previous owner only. Since you do not have a contract with the bank, I dont think they can come back at you later for rent. This is not meant to be considered as legal advice, just speaking from experience.
Tim/Diane/Kevin bring up a very important points about the Deed/assignment of rents and whether you are the owner of the property, which I did not address!
You should seek professional advice at this point so your exact situation can be reviewed.
ps: send them registered mail.