The Supreme Court has ruled that you’re allowed “bearable arms”, so essentially anything that can be carried, for self defense. And that requiring a weapon be kept locked up defeats the purpose of self defense.
Oregon has a law that requires guns be locked up, but dodges the self defense aspect by allowing an exception for guns under the direct control of the owner.
So if I’m home and in direct control of my guns, they don’t have to be secured. If I leave home or am not otherwise present, they do.