I would recommend talking to rental mediation organizations:
Generally tenant rights don't disappear because the ownership has changed. If you don't meet your obligations the new owner would be able to immediately start an eviction. If you have met your obligations you have the rights specified in your lease agreement.
Useful links for San Jose home owners and residents:
Top 2 agent nationwide at Keller Williams Realty, the nations largest
Over 30 years experience
Over 1,000 homes sold in Santa Clara and San Mateo Counties
Alain Pinel Realtors
Yes, as long as the landlord owns the home you must pay your rent to your landlord.
Also, I recommend that you have a discussion with your landlord about the return of any security deposits and prepaid rent that you have paid.
Often in these circumstances the landlord does not have the money to return the security deposits and prepaid rent.
Charles Butterfield MBA
Real Estate Broker/REALTOR
Cell Phone: (408)509-6218
Email Address: firstname.lastname@example.org
I would set up an account & start paying rent to that account. Notify the landlord that you are setting the rent aside, but are not giving it to him/her because the home is in foreclosure. ...that's just me. I'm not a lawyer...